Files
hudozka/src/ui/Panel/index.tsx
T
2022-10-12 15:52:27 +06:00

24 lines
472 B
TypeScript

import s from "./panel.module.css"
import { Box } from "../Box"
export type PanelProps = {
children?: React.ReactNode
style?: React.CSSProperties
ghost?: boolean
}
export const Panel: React.FC<PanelProps> = ({
style,
children,
ghost = false,
}) => {
const variant = ghost ? s.ghost : s.default
return (
<Box vertical align={false} className={`${s.panel} ${variant}`} style={style}>
{children}
</Box>
)
}