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-white bg-selected rounded-lg", inactive: "text-secondary-foreground bg-secondary rounded-lg", }, overlay: { active: "font-bold text-white bg-selected rounded-full", inactive: "text-primary rounded-full bg-gradient-to-br from-gray-400 to-gray-500 bg-gray-500", }, }; type CameraFeatureToggleProps = { className?: string; variant?: "primary" | "overlay"; isActive: boolean; Icon: IconType; title: string; onClick?: () => void; }; export default function CameraFeatureToggle({ className = "", variant = "primary", isActive, Icon, title, onClick, }: CameraFeatureToggleProps) { const content = (
{title}