This commit is contained in:
phaichayon
2026-04-16 16:59:46 +07:00
parent 4702150af1
commit ba1ffed211
165 changed files with 18353 additions and 219 deletions

View File

@@ -0,0 +1,22 @@
import React from 'react';
import { ScrollArea } from '@/components/ui/scroll-area';
export default function PageContainer({
children,
scrollable = true
}: {
children: React.ReactNode;
scrollable?: boolean;
}) {
return (
<>
{scrollable ? (
<ScrollArea className='h-[calc(100dvh-52px)]'>
<div className='flex flex-1 p-4 md:px-6'>{children}</div>
</ScrollArea>
) : (
<div className='flex flex-1 p-4 md:px-6'>{children}</div>
)}
</>
);
}