mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-05 00:40:38 +01:00
27 lines
589 B
TypeScript
27 lines
589 B
TypeScript
import { type 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,
|
|
backgroundColor: theme.colors.appBackground1,
|
|
position: "relative",
|
|
}}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|