import {LeftSidebarWithMenu} from '@theoryofnekomata/viewfinder'; import Brand from '../../../molecules/brand/Brand'; import Link from '../../../molecules/navigation/Link'; import OmnisearchForm from '../../forms/Omnisearch'; import {moreLinkMenuItem, sidebarMenuItems} from '../../../../data/layout'; import {FC, FormEventHandler} from 'react'; import {Session} from '@auth0/nextjs-auth0'; import styled from 'styled-components'; import Avatar from '../../../molecules/presentation/Avatar'; const TopBarComponent = styled('div')({ backgroundColor: 'var(--color-bg, white)', position: 'relative', '::before': { content: "''", position: 'absolute', bottom: 0, left: 0, width: '100%', height: '0.0625rem', pointerEvents: 'none', backgroundColor: 'currentcolor', opacity: 0.25, }, }) const SidebarMenuComponent = styled('div')({ backgroundColor: 'var(--color-bg, white)', '::before': { content: "''", position: 'absolute', top: 0, right: 0, height: '100%', width: '0.0625rem', pointerEvents: 'none', backgroundColor: 'currentcolor', opacity: 0.25, }, }) type Props = { onSearch?: FormEventHandler, session?: Partial, } const BasicLayout: FC = ({ onSearch, session, children, }) => { return ( } userLink={ } topBarComponent={TopBarComponent} sidebarMenuComponent={SidebarMenuComponent} topBarCenter={ } linkComponent={({ url, icon, label, }) => ( {icon} {label} )} moreLinkMenuItem={moreLinkMenuItem} moreLinkComponent={({ url, icon, label, }) => ( {icon} {label} )} sidebarMenuItems={sidebarMenuItems} > {children} ) } export default BasicLayout