import { XMarkIcon } from '@heroicons/react/24/outline'; import { PencilIcon } from '@heroicons/react/24/solid'; import { AnimatePresence, motion } from 'framer-motion'; import { useId, useState } from 'react'; function IndexSharedLayout() { const [active, setActive] = useState(null); const id = useId(); return ( <>
{!active ? ( setActive(true)} initial={{ scale: 1 }} whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }} transition={{ type: 'spring', bounce: 0, }} > ) : ( setActive(false)} transition={{ type: 'spring', bounce: 0.15, }} >

New Note


Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod {' '} tempor incididunt ut labore et dolore magna aliqua.

)}

Click the icon to toggle the transition

); } export default IndexSharedLayout;