import { motion } from "framer-motion"; import type { PropsWithChildren } from "react"; interface MotionProps extends PropsWithChildren { showComponent: boolean; className?: string; } const HideShow = (props: MotionProps) => { const { showComponent, ...rest } = props; return ( {props.children} ); }; HideShow.displayName = "HideShow"; export default HideShow;