misc_pterodactyl-panel/resources/scripts/components/screens/NotFound.tsx

18 lines
428 B
TypeScript
Raw Normal View History

import React from 'react';
2020-04-17 21:43:03 +00:00
import ScreenBlock from '@/components/screens/ScreenBlock';
interface Props {
title?: string;
2020-04-17 21:43:03 +00:00
message?: string;
onBack?: () => void;
}
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}
/>
);