import type { FC, ReactNode } from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faMagnifyingGlass } from "@fortawesome/pro-duotone-svg-icons"; const SearchLg: FC<{ className?: string }> = ({ className }) => ; import { Input } from "@/components/base/input/input"; import { UntitledLogo } from "@/components/foundations/logo/untitledui-logo"; import { cx } from "@/utils/cx"; import { MobileNavigationHeader } from "../base-components/mobile-header"; import { NavAccountCard } from "../base-components/nav-account-card"; import { NavItemBase } from "../base-components/nav-item"; import { NavList } from "../base-components/nav-list"; import type { NavItemType } from "../config"; interface SidebarNavigationProps { /** URL of the currently active item. */ activeUrl?: string; /** List of items to display. */ items: NavItemType[]; /** List of footer items to display. */ footerItems?: NavItemType[]; /** Feature card to display. */ featureCard?: ReactNode; /** Whether to show the account card. */ showAccountCard?: boolean; /** Whether to hide the right side border. */ hideBorder?: boolean; /** Additional CSS classes to apply to the sidebar. */ className?: string; } export const SidebarNavigationSimple = ({ activeUrl, items, footerItems = [], featureCard, showAccountCard = true, hideBorder = false, className, }: SidebarNavigationProps) => { const MAIN_SIDEBAR_WIDTH = 296; const content = ( ); return ( <> {/* Mobile header navigation */} {content} {/* Desktop sidebar navigation */}
{content}
{/* Placeholder to take up physical space because the real sidebar has `fixed` position. */}
); };