diff --git a/packages/web/src/components/apps/header.tsx b/packages/web/src/components/apps/header.tsx index 82295daf..4d6320b4 100644 --- a/packages/web/src/components/apps/header.tsx +++ b/packages/web/src/components/apps/header.tsx @@ -5,6 +5,9 @@ import { EllipsisIcon, PlayCircleIcon, Code2Icon, + CircleAlertIcon, + PanelBottomOpenIcon, + PanelBottomCloseIcon, } from 'lucide-react'; import { Link } from 'react-router-dom'; import { SrcbookLogo } from '@/components/logos'; @@ -29,6 +32,7 @@ import { useApp } from './use-app'; import { Input } from '@srcbook/components'; import { useState } from 'react'; import { usePreview } from './use-preview'; +import { useLogs } from './use-logs'; export type EditorHeaderTab = 'code' | 'preview'; @@ -43,6 +47,7 @@ export default function EditorHeader(props: PropsType) { const { app, updateApp } = useApp(); const { start: startPreview, stop: stopPreview, status: previewStatus } = usePreview(); const { status: npmInstallStatus, nodeModulesExists } = usePackageJson(); + const { open, togglePane, panelIcon } = useLogs(); const [nameChangeDialogOpen, setNameChangeDialogOpen] = useState(false); @@ -162,6 +167,29 @@ export default function EditorHeader(props: PropsType) { className={cn('w-[1px] h-6 bg-border mx-2', { invisible: props.tab !== 'preview' })} /> + + + + + + Open logs + +