import React, { FC } from "react"; type Props = { title: string action?: () => void children: any className?: string } export const Card: FC = ({ title, action, children, className = '', }) => (
{title} { action ? action() : null }
{children}
);