{options.map((item, index) => {
if (isSeparator(item)) {
return (
);
} else if (isLabel(item)) {
return (
{item.text}
);
} else {
return (
);
}
})}
);
}
function SubdocsMenuItem({
item,
selected,
onClick,
onExplicitClick,
}: {
item: Option | OptionDropdown;
selected?: Option;
onClick?: () => void;
onExplicitClick?: (url: string) => void;
}) {
const pathname = usePathname();
if (isOption(item)) {
return (