diff --git a/apps/admin/src/components/EditorShell.tsx b/apps/admin/src/components/EditorShell.tsx index fa80b0f..b6706e0 100644 --- a/apps/admin/src/components/EditorShell.tsx +++ b/apps/admin/src/components/EditorShell.tsx @@ -1,9 +1,15 @@ import { Typography } from '@mui/material'; +import AdminLayout from '../layout/AdminLayout'; -export default function EditorShell() { +export default function EditorShell({ onLogout }: { onLogout?: () => void }) { return ( - - Welcome to VoxBlog Editor - + + + Welcome to VoxBlog Editor + + + Coming next: audio recorder, rich editor, AI tools, and Ghost publish flow. + + ); } diff --git a/apps/admin/src/layout/AdminLayout.tsx b/apps/admin/src/layout/AdminLayout.tsx new file mode 100644 index 0000000..7985516 --- /dev/null +++ b/apps/admin/src/layout/AdminLayout.tsx @@ -0,0 +1,22 @@ +import { AppBar, Box, Button, Container, Toolbar, Typography } from '@mui/material'; +import type { ReactNode } from 'react'; + +export default function AdminLayout({ title, onLogout, children }: { title?: string; onLogout?: () => void; children: ReactNode }) { + return ( + + + + + {title || 'VoxBlog Admin'} + + {onLogout && ( + + )} + + + + {children} + + + ); +}