import { JSX } from "solid-js"; type ContainerProps = { title: string; children?: JSX.Element; }; const Container = (props: ContainerProps) => { return (
{props.title ? (
{props.title}
) : ( <> )} {props.children}
); }; export default Container;