Files
blitzkit/src/components/Wrapper.tsx
T

29 lines
616 B
TypeScript
Raw Normal View History

2023-05-28 02:25:59 +00:00
import { ReactNode } from 'react';
2023-07-11 19:54:57 +00:00
import { theme } from '../stitches.config';
2023-05-28 02:25:59 +00:00
2023-06-02 01:31:14 +00:00
export interface WrapperProps {
children: ReactNode;
2023-07-10 01:44:05 +00:00
naked?: boolean;
2023-10-10 21:20:01 -05:00
fat?: boolean;
2023-06-02 01:31:14 +00:00
}
2023-10-10 21:20:01 -05:00
export default function Wrapper({ children, naked, fat }: WrapperProps) {
2023-05-28 02:25:59 +00:00
return (
<div
style={{
display: 'flex',
flexDirection: 'column',
2023-10-10 21:20:01 -05:00
padding: `16px ${fat ? 0 : 16}px`,
2023-05-28 02:25:59 +00:00
gap: 32,
2023-08-06 18:38:17 +00:00
width: 480,
2023-05-29 18:29:02 +00:00
color: theme.colors.textHighContrast,
2023-07-10 01:44:05 +00:00
...(!naked && {
background: 'url(https://i.imgur.com/PhS06NJ.png)',
}),
2023-05-28 02:25:59 +00:00
}}
>
{children}
</div>
);
}