1
0
Fork 0
freesewing/sites/org/components/layouts/default.mjs
Joost De Cock ddbbbda2bc chore(shared): Changes kiosk/expand/flags/header
- Revamped the flags ui to be consistent with the rest
- The expand setting is on by default now. Tweaks to its dialog and
  header
- Added a new kiosk mode that will use the entire screen for the
  workbench
- Got rid of the auto-hiding behaviour of the header which gets annoying
  quick
2023-09-09 17:58:44 +02:00

24 lines
671 B
JavaScript

// Components
import { BaseLayout, BaseLayoutLeft, BaseLayoutWide } from 'shared/components/base-layout.mjs'
import { NavLinks, Breadcrumbs, MainSections } from 'shared/components/navigation/sitenav.mjs'
export const ns = []
export const DefaultLayout = ({ children = [], pageTitle = false }) => (
<BaseLayout>
<BaseLayoutLeft>
<MainSections />
<NavLinks />
</BaseLayoutLeft>
<BaseLayoutWide>
{pageTitle && (
<div className="xl:pl-4">
<Breadcrumbs />
<h1 className="break-words">{pageTitle}</h1>
</div>
)}
<div className="xl:pl-4">{children}</div>
</BaseLayoutWide>
</BaseLayout>
)