import React from 'react'; import Paper from '../components/Paper'; import Button from '../components/Button'; import { Action } from '../lib/ServiceContext'; interface Props { title?: string; actions?: Action[]; filters?: JSX.Element; className?: string; } const style = 'mb-2 flex justify-between md:flex-row md:items-center'; const Page: React.FC = ({ title, actions, filters, className, children }) => (
1 ? 'flex-col items-start' : 'flex-row items-center'}`}> {title}
{filters} {actions?.map(action => ())}
{children}
); export default Page;