export interface Props { text?: string, type?: "headline" | "title" | "light" | "lead" | "mini", className?: string, children?: any } const Text = ({ text, type, className, children }: Props): JSX.Element => (
{children}{text}
); export default Text