import { useState } from 'react'; import { Page, Masthead, MastheadMain, MastheadToggle, MastheadBrand, MastheadLogo, MastheadContent, PageSidebar, PageSidebarBody, PageSection, PageToggleButton, Toolbar, ToolbarContent, ToolbarItem } from '@patternfly/react-core'; export const PageWithOrWithoutFill: React.FunctionComponent = () => { const [isSidebarOpen, setIsSidebarOpen] = useState(true); const onSidebarToggle = () => { setIsSidebarOpen(!isSidebarOpen); }; const headerToolbar = ( header-tools ); const masthead = ( Logo {headerToolbar} ); const sidebar = ( Navigation ); return (

Section without fill

Section with fill

Another section without fill

); };