base con autenticacion, registro, modulo encuestas
This commit is contained in:
22
apps/web/components/layout/page-container.tsx
Normal file
22
apps/web/components/layout/page-container.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { ScrollArea } from '@repo/shadcn/scroll-area';
|
||||
import React from 'react';
|
||||
|
||||
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>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user