From 4ee4d4b1b7de14eb26627942206bc2e8cfdc1705 Mon Sep 17 00:00:00 2001 From: MrSphay Date: Fri, 1 May 2026 22:11:10 +0200 Subject: [PATCH] Allow editor panels without actions --- src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 604ece2..5bfa1f8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -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 (
@@ -482,7 +482,7 @@ function EditorPanel({ actions, children, hint, title }: { actions: ReactNode; c

{title}

{hint}

-
{actions}
+ {actions ?
{actions}
: null} {children}