2020-04-17 18:17:01 +00:00
|
|
|
import React from 'react';
|
2020-04-17 21:43:03 +00:00
|
|
|
import ScreenBlock from '@/components/screens/ScreenBlock';
|
2020-04-17 18:17:01 +00:00
|
|
|
|
|
|
|
interface Props {
|
|
|
|
title?: string;
|
2020-04-17 21:43:03 +00:00
|
|
|
message?: string;
|
|
|
|
onBack?: () => void;
|
2020-04-17 18:17:01 +00:00
|
|
|
}
|
|
|
|
|
2020-04-17 21:43:03 +00:00
|
|
|
export default ({ title, message, onBack }: Props) => (
|
|
|
|
<ScreenBlock
|
|
|
|
title={title || '404'}
|
|
|
|
image={'/assets/svgs/not_found.svg'}
|
|
|
|
message={message || 'The requested resource was not found.'}
|
|
|
|
onBack={onBack}
|
|
|
|
/>
|
2020-04-17 18:17:01 +00:00
|
|
|
);
|