2025-10-13 23:15:32 -05:00
|
|
|
import { type ReactNode } from "react";
|
|
|
|
|
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-09-08 10:11:24 -05:00
|
|
|
export function CommandWrapper({ children, fat }: CommandWrapperProps) {
|
2023-05-28 02:25:59 +00:00
|
|
|
return (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
2025-10-13 23:15:32 -05:00
|
|
|
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,
|
2025-10-13 23:15:32 -05:00
|
|
|
width: "100%",
|
2023-05-29 18:29:02 +00:00
|
|
|
color: theme.colors.textHighContrast,
|
2025-04-02 16:11:09 -05:00
|
|
|
backgroundColor: theme.colors.appBackground1,
|
2025-10-13 23:15:32 -05:00
|
|
|
position: "relative",
|
2023-05-28 02:25:59 +00:00
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{children}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|