File size: 805 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
import clsx from 'clsx';
import React, { ReactNode } from 'react';
import Main from 'calypso/components/main';
import './style.scss';
type Props = {
children: ReactNode;
className?: string;
wide?: boolean;
withBorder?: boolean;
compact?: boolean;
scrollable?: boolean;
};
export default function LayoutColumn( {
children,
className,
wide,
withBorder,
compact,
scrollable,
}: Props ) {
return (
<Main
className={ clsx( 'hosting-dashboard-layout-column', className, {
'is-with-border': withBorder,
'is-compact': compact,
'is-scrollable': scrollable,
} ) }
fullWidthLayout={ wide }
wideLayout={ ! wide } // When we set to full width, we want to set this to false.
>
<div className="hosting-dashboard-layout-column__container">{ children }</div>
</Main>
);
}
|