2024-12-28 12:23:50 -05:00
|
|
|
import { JSX } from "react";
|
|
|
|
|
|
|
|
export type ChildrenType = JSX.Element| Array<ChildrenType>;
|
2024-02-13 18:01:07 -05:00
|
|
|
|
|
|
|
function Container(props: { children?: ChildrenType, ignore?: boolean }) {
|
|
|
|
if (props.ignore)
|
|
|
|
return <>{props.children}</>;
|
|
|
|
return (
|
|
|
|
<div className='container'>
|
|
|
|
{props.children}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Container;
|