mue/src/features/modals/welcome/components/Layout/Panel.jsx

14 lines
281 B
JavaScript

const Panel = ({ children, type }) => (
<section className={type}>
{type === 'content' ? (
<div className="content">{children}</div>
) : type === 'aside' ? (
<>{children}</>
) : (
children
)}
</section>
);
export { Panel as default, Panel };