Initial Plast Track MVP

This commit is contained in:
masterdev
2026-06-15 13:35:22 +01:00
commit 3bf4c622d8
47 changed files with 7339 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import { PropsWithChildren, ReactNode } from "react";
type PanelProps = PropsWithChildren<{
title: string;
subtitle?: string;
actions?: ReactNode;
}>;
export default function Panel({ title, subtitle, actions, children }: PanelProps) {
return (
<section className="panel">
<header className="panel__header">
<div>
<p className="eyebrow">{title}</p>
{subtitle ? <h2>{subtitle}</h2> : null}
</div>
{actions}
</header>
{children}
</section>
);
}