www/components/container.tsx
Paul W. e3c70632e2
Add programming-resources; swi->generic Nintendo;
Remove custom html from markdown, clean-up UI (again)

Signed-off-by: Paul W. <lambdapaul@protonmail.com>
2024-02-13 18:01:07 -05:00

13 lines
326 B
TypeScript

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;