Some checks failed
tests / ci (pull_request) Has been cancelled
- Removed unnecessary "use client" directive from checkbox and select components. - Added new Drawer component with associated subcomponents (DrawerTrigger, DrawerClose, etc.) for better UI management. - Introduced Table component with TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, and TableCaption for structured data display. - Added Tabs component with TabsList, TabsTrigger, and TabsContent for tabbed navigation. - Updated user-info component to use full_name instead of name for better clarity. - Modified user-menu-content to include translations for settings and logout options. - Added data.json file for mock data in the dashboard. - Updated dashboard page to utilize new components and improved layout. - Refactored User type to replace name with full_name for consistency across the application.
23 lines
856 B
TypeScript
23 lines
856 B
TypeScript
import { Breadcrumbs } from '@/components/breadcrumbs';
|
|
import { NavUser } from '@/components/nav-user';
|
|
import { SidebarTrigger } from '@/components/ui/sidebar';
|
|
import type { BreadcrumbItem as BreadcrumbItemType } from '@/types';
|
|
|
|
export function AppSidebarHeader({
|
|
breadcrumbs = [],
|
|
}: {
|
|
breadcrumbs?: BreadcrumbItemType[];
|
|
}) {
|
|
return (
|
|
<header className="flex h-16 shrink-0 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="ml-auto">
|
|
<NavUser />
|
|
</div>
|
|
</header>
|
|
);
|
|
}
|