import { useState, type ReactNode } from 'react';
import { Sidebar } from './Sidebar';
import { Topbar } from './Topbar';
import { CommandPalette } from './CommandPalette';
interface Props {
children: ReactNode;
}
export function AppShell({ children }: Props) {
const [paletteOpen, setPaletteOpen] = useState(false);
return (
setPaletteOpen(true)} />
{children}
);
}
export function PageHeader({
title,
description,
actions,
}: {
title: string;
description?: string;
actions?: ReactNode;
}) {
return (
{title}
{description &&
{description}
}
{actions &&
{actions}
}
);
}
export function PageBody({ children, className }: { children: ReactNode; className?: string }) {
return {children}
;
}