import { IconType } from "react-icons"; import { Tooltip, TooltipContent, TooltipTrigger, } from "@/components/ui/tooltip"; import { isDesktop } from "react-device-detect"; const variants = { primary: { active: "font-bold text-primary-foreground bg-selected", inactive: "text-secondary-foreground bg-secondary", }, secondary: { active: "font-bold text-primary", inactive: "text-secondary-foreground", }, }; type CameraFeatureToggleProps = { className?: string; variant?: "primary" | "secondary"; isActive: boolean; Icon: IconType; title: string; onClick?: () => void; }; export default function CameraFeatureToggle({ className = "", variant = "primary", isActive, Icon, title, onClick, }: CameraFeatureToggleProps) { const content = (
); if (isDesktop) { return ( {content}

{title}

); } return content; }