mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-17 16:46:31 +03:00
13 lines
344 B
TypeScript
13 lines
344 B
TypeScript
type PanelProps = { title: string; children?: React.ReactNode };
|
|
|
|
export function Panel({ title, children }: PanelProps) {
|
|
return (
|
|
<section className="panel">
|
|
<header className="panel-header">
|
|
<h2 className="panel-title">{title}</h2>
|
|
</header>
|
|
<div className="panel-body">{children}</div>
|
|
</section>
|
|
);
|
|
}
|