"use client"; import { Button } from "@nextui-org/button"; import { Dispatch, FC, SetStateAction } from "react"; import { FaMagic } from "react-icons/fa"; import { FaImage } from "react-icons/fa6"; import { cn } from "@/lib/utils"; export interface AnimationSwitchProps { className?: string; animated: boolean; setAnimated: Dispatch>; } export const AnimationSwitch: FC = ({ className, animated, setAnimated, }) => { const onChange = () => { setAnimated((prev) => !prev); }; return (
{!animated ? ( ) : ( )}
); };