ぼざクリタグ広場 https://hub.nizika.monster
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
453 B

  1. import { motion } from 'framer-motion'
  2. import { cn } from '@/lib/utils'
  3. import type { FC, ReactNode } from 'react'
  4. type Props = {
  5. children: ReactNode
  6. className?: string }
  7. export default (({ children, className }: Props) => (
  8. <motion.main
  9. transition={{ layout: { duration: .2, ease: 'easeOut' } }}
  10. className={cn ('flex-1 overflow-y-auto p-4', className)}
  11. layout="position">
  12. {children}
  13. </motion.main>)) satisfies FC<Props>