import React from 'react'; import PageContentBlock from '@/components/elements/PageContentBlock'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faArrowLeft } from '@fortawesome/free-solid-svg-icons/faArrowLeft'; interface Props { title?: string; message: string; onBack?: () => void; } export default ({ title, message, onBack }: Props) => (
{typeof onBack === 'function' &&
}

{title || 'Something went wrong!'}

{message}

);