Simplify box

This commit is contained in:
Eric Bailey
2024-08-29 12:55:59 -05:00
parent 9fcd83e06f
commit 95aebf5724
+2 -2
View File
@@ -4,10 +4,10 @@ import {atoms as a, style as s} from '../theme/index.js'
export function Box({
children,
cx,
cx = [],
}: {
children?: React.ReactNode
cx?: Record<string, any>[]
}) {
return <div style={s([a.flex, a.flex_col, ...(cx ?? [])])}>{children}</div>
return <div style={s([a.flex, a.flex_col, ...cx])}>{children}</div>
}