import { Link } from '@inertiajs/react'; import { route } from '@izzyjs/route/client'; import { ActionIcon, AppShell, Burger, Group, Menu, Text } from '@mantine/core'; import { useTranslation } from 'react-i18next'; import { BsThreeDotsVertical } from 'react-icons/bs'; import { GoPencil } from 'react-icons/go'; import { IoIosAddCircleOutline } from 'react-icons/io'; import { IoTrashOutline } from 'react-icons/io5'; import { appendCollectionId } from '~/lib/navigation'; import { useActiveCollection } from '~/store/collection_store'; interface DashboardHeaderProps { navbar: { opened: boolean; toggle: () => void; }; aside: { opened: boolean; toggle: () => void; }; } export function DashboardHeader({ navbar, aside }: DashboardHeaderProps) { const { t } = useTranslation('common'); const { activeCollection } = useActiveCollection(); return ( {activeCollection?.name} } color="blue" > {t('link.create')} } color="blue" > {t('collection.edit')} } color="red" > {t('collection.delete')} ); }