mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
30 lines
616 B
TypeScript
30 lines
616 B
TypeScript
import { ReactNode } from 'react';
|
|
import { theme } from '../stitches.config';
|
|
|
|
export interface WrapperProps {
|
|
children: ReactNode;
|
|
naked?: boolean;
|
|
fat?: boolean;
|
|
}
|
|
|
|
export default function Wrapper({ children, naked, fat }: WrapperProps) {
|
|
return (
|
|
<div
|
|
style={{
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
padding: `16px ${fat ? 0 : 16}px`,
|
|
gap: 32,
|
|
width: 480,
|
|
color: theme.colors.textHighContrast,
|
|
|
|
...(!naked && {
|
|
background: 'url(https://i.imgur.com/PhS06NJ.png)',
|
|
}),
|
|
}}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|