diff --git a/src/frontend/src/layout/Screen.tsx b/src/frontend/src/layout/Screen.tsx index 7d90d401..72531346 100644 --- a/src/frontend/src/layout/Screen.tsx +++ b/src/frontend/src/layout/Screen.tsx @@ -2,6 +2,8 @@ import { layoutStore } from '@/stores/layout' import { Layout } from './Layout' import { useEffect } from 'react' import { Centered } from './Centered' +import { H } from '@/primitives' +import { css } from '@/styled-system/css' export type ScreenProps = { /** @@ -14,6 +16,7 @@ export type ScreenProps = { */ header?: boolean footer?: boolean + headerTitle?: string children: React.ReactNode } @@ -21,6 +24,7 @@ export const Screen = ({ layout = 'fullpage', header = true, footer = true, + headerTitle, children, }: ScreenProps) => { useEffect(() => { @@ -31,5 +35,40 @@ export const Screen = ({ layoutStore.showFooter = footer } }, [header, footer]) - return layout === 'centered' ? {children} : children + + return ( + <> + {headerTitle && ( +
+
+ + {headerTitle} + +
+
+ )} + {layout === 'centered' ? {children} : children} + + ) }