Simplify box
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user