import React from 'react'; import { Page, Masthead, MastheadToggle, MastheadMain, MastheadBrand, MastheadContent, PageSidebar, PageSidebarBody, PageSection, PageToggleButton, Toolbar, ToolbarContent, ToolbarItem } from '@breakaway/preact-core'; import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon'; export const PageWithOrWithoutFill: React.FunctionComponent = () => { const [isSidebarOpen, setIsSidebarOpen] = React.useState(true); const onSidebarToggle = () => { setIsSidebarOpen(!isSidebarOpen); }; const headerToolbar = ( header-tools ); const header = ( Logo {headerToolbar} ); const sidebar = ( Navigation ); return ( A default page section This section fills the available space. This section is set to not fill the available space, since the last page section is set to fill the available space by default. ); };