import { SFC } from 'inferno'; import { Box } from './Box'; // The cost of flexibility and prettiness. export const StyleableSection: SFC<{ style?; titleStyle?; textStyle?; title?; titleSubtext?; }> = (props) => { return ( {/* Yes, this box (line above) is missing the "Section" class. This is very intentional, as the layout looks *ugly* with it.*/} {props.title}
{props.titleSubtext}
{props.children}
); };