mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
21 lines
404 B
TypeScript
21 lines
404 B
TypeScript
import clsx from 'classnames';
|
|
import { Box } from '@/components';
|
|
import styles from './Overlay.module.scss';
|
|
|
|
export interface OverlayProps {
|
|
visible?: boolean;
|
|
children?: React.ReactNode;
|
|
}
|
|
|
|
export function Overlay({ children, visible }: OverlayProps) {
|
|
return (
|
|
<Box
|
|
className={clsx(styles.root, {
|
|
[styles.visible]: visible,
|
|
})}
|
|
>
|
|
{children}
|
|
</Box>
|
|
);
|
|
}
|