import * as React from 'react'; import { useRecoilState, useRecoilValue } from 'recoil'; import { Tab } from '../constants/Tab'; import { SettingsAtom, TabAtom } from '../state'; export interface INavigationProps { totalPages: number; } export const tabs = [ { name: 'All articles', id: Tab.All}, { name: 'Published', id: Tab.Published }, { name: 'In draft', id: Tab.Draft } ]; export const Navigation: React.FunctionComponent = ({totalPages}: React.PropsWithChildren) => { const [ crntTab, setCrntTab ] = useRecoilState(TabAtom); const settings = useRecoilValue(SettingsAtom); return ( ); };