// Copyright (c) 2017 PlanGrid, Inc. import React from "react"; import "../styles/error.scss"; export interface IErrorProps { error: string; children?: React.ReactElement; } export const Error: React.FunctionComponent = (props) => (
{props.children ? ( props.children ) : (

{props.error}

)}
);