import { t } from '../i18n' import { BarChart3, Home, LibraryBig, Search, Settings } from 'lucide-react' import { cx } from '../lib/utils' export type Tab = 'home' | 'catalog' | 'stats' | 'settings' const ITEMS: { tab: Tab; readonly label: string; Icon: typeof Home }[] = [ { tab: 'home', get label() { return t('nav.home') }, Icon: Home }, { tab: 'catalog', get label() { return t('nav.catalog') }, Icon: LibraryBig }, { tab: 'stats', get label() { return t('nav.stats') }, Icon: BarChart3 }, { tab: 'settings', get label() { return t('nav.settings') }, Icon: Settings }, ] interface Props { current: Tab onChange: (tab: Tab) => void onAdd: () => void } export default function BottomNav({ current, onChange, onAdd }: Props) { const button = ({ tab, label, Icon }: (typeof ITEMS)[number]) => { const active = current === tab return ( ) } return ( ) }