Files
blitzkit/src/components/CommandWrapper.tsx
T

26 lines
584 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
2024-03-06 09:52:09 -06:00
interface CommandWrapperProps {
2023-06-02 01:31:14 +00:00
children: ReactNode;
2023-10-10 21:20:01 -05:00
fat?: boolean;
2023-06-02 01:31:14 +00:00
}
2024-03-06 09:52:09 -06:00
export default function CommandWrapper({ children, fat }: CommandWrapperProps) {
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`,
2024-03-06 09:52:09 -06:00
gap: 16,
2023-08-06 18:38:17 +00:00
width: 480,
2023-05-29 18:29:02 +00:00
color: theme.colors.textHighContrast,
2024-03-24 22:06:48 -05:00
position: 'relative',
2024-03-25 18:22:37 -05:00
background: theme.colors.appBackground1,
2023-05-28 02:25:59 +00:00
}}
>
{children}
</div>
);
}