import { Breadcrumbs } from '@/components/other/breadcrumbs';
import { SidebarTrigger } from '@/components/ui/sidebar';
import type { BreadcrumbItem as BreadcrumbItemType } from '@/types';
import { Home } from 'lucide-react';
import { router } from '@inertiajs/react';
import { Button } from '../ui/button';
import { TheamToggle } from '../core/TheamToggle';
import FullscreenButton from '../core/FullscreenButton';
export function AppSidebarHeader({
    breadcrumbs = [],
}: {
    breadcrumbs?: BreadcrumbItemType[];
}) {
    return (
        <header className="flex h-16 shrink-0 justify-between items-center gap-2 border-b border-sidebar-border/50 px-6 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12 md:px-4">
            <div className="flex items-center gap-2">
                <SidebarTrigger className="-ml-1" />
                <Breadcrumbs breadcrumbs={breadcrumbs} />
            </div>

            <div className='flex gap-4 items-center'>
                <Button size='icon' variant='ghost' className='rounded-full' onClick={() => router.visit('/')}><Home /></Button>
                <FullscreenButton />
                <TheamToggle />
            </div>
        </header>
    );
}
