import React from 'react'; import Text from '../text'; export interface IErrorProps { title?: string, message?: string } const Error = (props: IErrorProps) => { const { title = 'An unknown error occurred', message = 'Try again and contact us if the issue continues.' } = props; return (
{title} {message}
) }; export default Error;