refactor(playground): replace Header with WorkspaceHeader

This commit is contained in:
cfngc4594 2025-03-08 19:50:21 +08:00
parent 9ff39a0438
commit d697993e87

View File

@ -3,7 +3,7 @@ import {
ResizablePanel, ResizablePanel,
ResizablePanelGroup, ResizablePanelGroup,
} from "@/components/ui/resizable"; } from "@/components/ui/resizable";
import { Header } from "@/components/header"; import { WorkspaceHeader } from "@/components/workspace-header";
interface PlaygroundLayoutProps { interface PlaygroundLayoutProps {
problem: React.ReactNode; problem: React.ReactNode;
@ -16,7 +16,7 @@ export default function PlaygroundLayout({
}: PlaygroundLayoutProps) { }: PlaygroundLayoutProps) {
return ( return (
<div className="h-full flex flex-col"> <div className="h-full flex flex-col">
<Header /> <WorkspaceHeader />
<ResizablePanelGroup direction="horizontal" className="p-2.5 pt-0"> <ResizablePanelGroup direction="horizontal" className="p-2.5 pt-0">
<ResizablePanel <ResizablePanel
defaultSize={50} defaultSize={50}