Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import clsx from 'clsx';
import { ReactNode } from 'react';
import DocumentHead from 'calypso/components/data/document-head';
import Main from 'calypso/components/main';
import SidebarNavigation from '../sidebar-navigation';
import './style.scss';
type Props = {
children: ReactNode;
className?: string;
title: ReactNode;
wide?: boolean;
withBorder?: boolean;
};
export default function Layout( {
children,
className,
title,
wide = false,
withBorder = false,
}: Props ) {
return (
<Main
className={ clsx( 'partner-portal-layout', className, {
'is-with-border': withBorder,
} ) }
fullWidthLayout={ wide }
wideLayout={ ! wide } // When we set to full width, we want to set this to false.
>
<DocumentHead title={ title } />
<SidebarNavigation />
<div className="partner-portal-layout__container">{ children }</div>
</Main>
);
}