refactor(renderer): rename EntityWorkspace to TwoPaneLayout for clarity

This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 23:33:55 -04:00
1 parent 933fcf27d0
commit 61aba41e77
8 files changed
+952 -7

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
import type { ReactNode } from "react";
import { Eyebrow } from "./ui";
/**
* Two-pane layout with a section header.
* Use `Panel` (from ui/) for single-slot sections. Use this when rendering a primary + secondary pane.
*/
export function TwoPaneLayout({
title,
eyebrow,
primary,
secondary,
}: {
title: string;
eyebrow?: string;
primary: ReactNode;
secondary: ReactNode;
}) {
return (
<div className="space-y-14">
<div>
{eyebrow ? <Eyebrow className="mb-1">{eyebrow}</Eyebrow> : null}
<h2 className="text-[20px] font-bold tracking-[-0.025em] text-foreground">{title}</h2>
</div>
<div className="space-y-14">{primary}{secondary}</div>
</div>
);
}