www/components/container.tsx

13 lines
326 B
TypeScript
Raw Permalink Normal View History

export type ChildrenType = JSX.Element | Array<ChildrenType>;
function Container(props: { children?: ChildrenType, ignore?: boolean }) {
if (props.ignore)
return <>{props.children}</>;
return (
<div className='container'>
{props.children}
</div>
);
}
export default Container;