mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: session toolbar
This commit is contained in:
1 parent
350434cc5a
commit
33b4ea04b4
7 files changed
+165
-65
No files matched your search
@@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user