import { ExternalLink } from 'lucide-react';
import { Icon, SubNavigation, SubNavigationLayout } from '@/sdk';
import { Main, Slot, type NavItem, type ViewProps } from '@/sdk/theme';
import { tabLabel } from './tabLabel';
/** An icon in the row; it is named once the navigation collapses or moves it into the menu. */
function AdminLinkLabel({ placement }: { placement: 'row' | 'menu' }) {
return (
Open Admin Area
);
}
export default function ServerLayout({ model, className, children }: ViewProps<'layout.server'>) {
const { adminLink } = model;
const items: readonly NavItem[] = adminLink ? [...model.nav.items, adminLink] : model.nav.items;
return (
item.extensionId !== undefined || item === adminLink}
renderItem={(item, state) =>
item === adminLink ? : tabLabel(item, state)
}
before={}
after={}
/>
}
>
{children}
);
}