@shopify/polaris
Version:
Shopify’s product component library
10 lines (9 loc) • 392 B
JavaScript
import React from 'react';
import { AnnotatedSection, Section } from './components';
import styles from './Layout.scss';
export const Layout = function Layout({ sectioned, children }) {
const content = sectioned ? <Section>{children}</Section> : children;
return <div className={styles.Layout}>{content}</div>;
};
Layout.AnnotatedSection = AnnotatedSection;
Layout.Section = Section;