Initial commit: OmniAI Web Frontend
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import type { CSSProperties, ReactNode } from "react";
|
||||
|
||||
interface WorkspacePageShellProps {
|
||||
title: string;
|
||||
headerRight?: ReactNode;
|
||||
fullWidth?: boolean;
|
||||
className?: string;
|
||||
style?: CSSProperties;
|
||||
children: ReactNode;
|
||||
}
|
||||
|
||||
function WorkspacePageShell({
|
||||
title,
|
||||
headerRight,
|
||||
fullWidth,
|
||||
className,
|
||||
style,
|
||||
children,
|
||||
}: WorkspacePageShellProps) {
|
||||
return (
|
||||
<section
|
||||
className={`workspace-page-shell${fullWidth ? " workspace-page-shell--full" : ""}${
|
||||
className ? ` ${className}` : ""
|
||||
}`}
|
||||
style={style}
|
||||
aria-label={title}
|
||||
>
|
||||
{headerRight ? <div className="workspace-page-shell__actions">{headerRight}</div> : null}
|
||||
<main className="workspace-page-shell__content">{children}</main>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
export default WorkspacePageShell;
|
||||
Reference in New Issue
Block a user