@shopify/polaris
Version:
Shopify’s product component library
13 lines (12 loc) • 453 B
JavaScript
import React from 'react';
import { AnnotatedSection, Section } from './components';
import styles from './Layout.scss';
export class Layout extends React.Component {
render() {
const { children, sectioned } = this.props;
const content = sectioned ? <Section>{children}</Section> : children;
return <div className={styles.Layout}>{content}</div>;
}
}
Layout.AnnotatedSection = AnnotatedSection;
Layout.Section = Section;