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; isValidating?: boolean; className?: string; } const style = 'mb-2 flex justify-between md:flex-row md:items-center'; const Spinner: React.FC = () => <> O; // TODO: replace with spinner const Page: React.FC = ({ title, actions, filters, isValidating, className, children }) => (
{title} {isValidating && }
{filters} {actions?.map(action => ())}
{children}
); export default Page;