import { Button } from '@fluid-design/fluid-ui'; import { AnimatePresence, motion } from 'framer-motion'; import { MdDarkMode, MdOutlineLightMode } from 'react-icons/md'; import { useTheme } from '@/store/useTheme'; import clsxm from '../lib/clsxm'; export const ThemeSwitch = (props) => { const { mode, toggleMode } = useTheme(); const buttonVariants = { initial: {}, animate: {}, exit: {}, tap: { scale: 0.9, }, }; const iconVariants = { initial: { opacity: 0, scale: 0.3, rotate: -120, }, animate: { opacity: 1, scale: 1, rotate: 0, }, exit: { scale: 0.5, rotate: 90, opacity: 0, }, tap: { rotate: 30, }, }; return (
); };