import classNames from 'classnames' import { AnimatePresence, motion } from 'framer-motion' import { useState } from 'react' export interface IDownloaderContent { title: string features: string[] } interface DownloaderProps { className?: string children: React.ReactNode content: IDownloaderContent } export const Downloader: React.FC = ({ className, children, content }) => { const [activeContent, setActiveContent] = useState(false) const handleActiveContent = (): void => { return setActiveContent(!activeContent) } return (
  • {children} {activeContent && ( {content.title} {content.features.map((feature) => { return ( {feature} ) })} )}
  • ) }