1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-22 22:16:13 -04:00
Files
Sonarr/frontend/src/Components/NotFound.tsx
T
2024-08-30 20:26:38 -07:00

28 lines
660 B
TypeScript

import React from 'react';
import PageContent from 'Components/Page/PageContent';
import translate from 'Utilities/String/translate';
import styles from './NotFound.css';
interface NotFoundProps {
message?: string;
}
function NotFound(props: NotFoundProps) {
const { message = translate('DefaultNotFoundMessage') } = props;
return (
<PageContent title="MIA">
<div className={styles.container}>
<div className={styles.message}>{message}</div>
<img
className={styles.image}
src={`${window.Sonarr.urlBase}/Content/Images/404.png`}
/>
</div>
</PageContent>
);
}
export default NotFound;