mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
27 lines
579 B
TypeScript
27 lines
579 B
TypeScript
import { ReactNode } from 'react';
|
|
import { theme } from '../stitches.config';
|
|
|
|
interface CommandWrapperProps {
|
|
children: ReactNode;
|
|
fat?: boolean;
|
|
}
|
|
|
|
export function CommandWrapper({ children, fat }: CommandWrapperProps) {
|
|
return (
|
|
<div
|
|
style={{
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
padding: `16px ${fat ? 0 : 16}px`,
|
|
gap: 16,
|
|
width: '100%',
|
|
color: theme.colors.textHighContrast,
|
|
position: 'relative',
|
|
background: theme.colors.appBackground1,
|
|
}}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|