Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 1x | import { LucideIcon } from "lucide-react";
interface NavTitleProps {
icon: LucideIcon;
label: string;
sub?: boolean;
}
const NavTitle = ({ icon: Icon, label, sub }: NavTitleProps) => (
<div className="flex gap-2 items-center w-full">
<Icon className={sub ? "size-3 shrink-0" : "size-4 shrink-0"} />
<div className={`truncate ${sub ? "text-sm" : "text-lg"}`}>{label}</div>
</div>
);
export default NavTitle;
|