Allow editor panels without actions
All checks were successful
Build Windows App / build-windows (push) Successful in 21m43s

This commit is contained in:
MrSphay
2026-05-01 22:11:10 +02:00
parent 8e05e70577
commit 4ee4d4b1b7

View File

@@ -474,7 +474,7 @@ function Stat({ label, value }: { label: string; value: string }) {
);
}
function EditorPanel({ actions, children, hint, title }: { actions: ReactNode; children: ReactNode; hint: string; title: string }) {
function EditorPanel({ actions, children, hint, title }: { actions?: ReactNode; children: ReactNode; hint: string; title: string }) {
return (
<section className="editorPanel">
<div className="panelHeader">
@@ -482,7 +482,7 @@ function EditorPanel({ actions, children, hint, title }: { actions: ReactNode; c
<h2>{title}</h2>
<p>{hint}</p>
</div>
<div className="buttonRow">{actions}</div>
{actions ? <div className="buttonRow">{actions}</div> : null}
</div>
{children}
</section>