feat: session toolbar

This commit is contained in:
TresAbhi committed 2023-09-18 22:32:21 +00:00
1 parent 350434cc5a
commit 33b4ea04b4
7 files changed
+165 -65

No files matched your search

+20 -9
View File
@@ -1,13 +1,24 @@
import { ReactNode } from 'react';
import { ComponentProps } from 'react';
interface PageWrapperProps {
children: ReactNode;
}
export default function PageWrapper({ children }: PageWrapperProps) {
export default function PageWrapper({
style,
...props
}: ComponentProps<'div'>) {
return (
<div style={{ maxWidth: 780, margin: 'auto', display: 'block' }}>
{children}
</div>
<div
style={{
width: '100%',
maxWidth: 780,
margin: 'auto',
display: 'flex',
padding: 16,
flexDirection: 'column',
gap: 16,
boxSizing: 'border-box',
...style,
}}
{...props}
/>
);
}