import * as React from 'react'; import { Tab } from '../constants/Tab'; import { SortOption } from '../constants/SortOption'; import { Navigation } from './Navigation'; import { Sorting } from './Sorting'; import { Grouping } from './Grouping'; import { MessageHelper } from '../../helpers/MessageHelper'; import { DashboardMessage } from '../DashboardMessage'; import { Searchbox } from './Searchbox'; import { Settings } from '../models/Settings'; import { Startup } from './Startup'; import { Button } from './Button'; import { Filter } from './Filter'; export interface IHeaderProps { settings: Settings; // Navigation currentTab: Tab; totalPages: number; switchTab: (tabId: Tab) => void; // Sorting currentSorting: SortOption; switchSorting: (sortId: SortOption) => void; // Grouping groups: string[]; crntGroup: string | null; switchGroup: (group: string | null) => void; // Searching onSearch: (value: string | null) => void; // Tags crntTag: string | null; switchTag: (tag: string | null) => void; // Categories crntCategory: string | null; switchCategory: (category: string | null) => void; } export const Header: React.FunctionComponent = ({currentTab, currentSorting, switchSorting, switchTab, totalPages, crntGroup, groups, switchGroup, onSearch, settings, switchTag, crntTag, switchCategory, crntCategory}: React.PropsWithChildren) => { const createContent = () => { MessageHelper.sendMessage(DashboardMessage.createContent); }; return (
); };