// @flow import * as React from 'react'; type Props = { Sort: React.Node, Filter: React.Node, Pagination: React.Node, children: React.Node, Actions: React.Node, } export default class ToolbarLayout extends React.PureComponent { render() { const {Filter, Sort, Actions, children, Pagination} = this.props; return (
{ Actions || Sort ? (
{Actions ||
} {Sort}
) : null } { Filter ? (
{Filter}
) : null }
{React.Children.only(children)} {Pagination} ); } }