) {
const { setMobileOpen, variant } = useSidebar();
return navGroups.map((group) => (
{group.title}
{group.items.map((item) => {
const active =
item.href === homeHref
? pathname === homeHref
: item.href
? pathname === item.href || pathname.startsWith(`${item.href}/`)
: false;
const Icon = item.icon;
return (
: undefined}
onClick={() => {
if (variant === "floating") setMobileOpen(false);
}}
>
{item.title}
);
})}
));
}
function BrandMark({ branding }: { branding: AppShellBranding }) {
const logoUrl = branding.lightLogoUrl ?? branding.darkLogoUrl;
if (!logoUrl) {
return (
{branding.applicationName.slice(0, 1).toLocaleUpperCase("tr-TR")}
);
}
return (
{branding.darkLogoUrl ? (
) : null}
);
}
function MobileBrand({ branding }: { branding: AppShellBranding }) {
return (
{branding.applicationName}
);
}
function ProgressSummary({ progress }: { progress: number }) {
const normalizedProgress = Math.max(0, Math.min(100, progress));
return (
Proje ilerlemesi
%{normalizedProgress} tamamlandı
);
}
function AccountMenu({ user, settingsHref }: { user: ShellUser; settingsHref: string }) {
return (
}>
Ayarlar
);
}