| 1 | import { Box } from "ink"; |
| 2 | |
| 3 | export const baseBoxStyles: React.ComponentProps<typeof Box> = { |
| 4 | flexDirection: "column", |
| 5 | paddingX: 2, |
| 6 | paddingY: 1, |
| 7 | borderStyle: "round", |
| 8 | }; |
| 9 | |
| 10 | export const defaultBoxStyles = ( |
| 11 | borderColor: string, |
| 12 | overrides?: Partial<React.ComponentProps<typeof Box>>, |
| 13 | ): React.ComponentProps<typeof Box> => ({ |
| 14 | ...baseBoxStyles, |
| 15 | borderColor, |
| 16 | ...overrides, |
| 17 | }); |