import type { ReactNode } from 'react'; export interface NavSlabProps { /** The wordmark or product name at the leading edge. */ brand: ReactNode; children: ReactNode; /** The one control the slab carries on its trailing edge. */ action?: ReactNode; className?: string; } export function NavSlab({ brand, children, action, className }: NavSlabProps) { return (
{brand}
{action !== undefined &&
{action}
}
); }