e72ec608f4
#95 #95 #95 #95 #95 Merge remote-tracking branch 'origin/main' into feature/095 #95 #95 #95 Co-authored-by: miteruzo <miteruzo@naver.com> Reviewed-on: #311
19 lines
453 B
TypeScript
19 lines
453 B
TypeScript
import { motion } from 'framer-motion'
|
|
|
|
import { cn } from '@/lib/utils'
|
|
|
|
import type { FC, ReactNode } from 'react'
|
|
|
|
type Props = {
|
|
children: ReactNode
|
|
className?: string }
|
|
|
|
|
|
export default (({ children, className }: Props) => (
|
|
<motion.main
|
|
transition={{ layout: { duration: .2, ease: 'easeOut' } }}
|
|
className={cn ('flex-1 overflow-y-auto p-4', className)}
|
|
layout="position">
|
|
{children}
|
|
</motion.main>)) satisfies FC<Props>
|