This commit is contained in:
@@ -9,10 +9,12 @@ type Props = {
|
||||
className?: string }
|
||||
|
||||
|
||||
export default (({ children, className }: Props) => (
|
||||
const MainArea: FC<Props> = ({ children, className }) => (
|
||||
<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>
|
||||
</motion.main>)
|
||||
|
||||
export default MainArea
|
||||
Reference in New Issue
Block a user