mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
32 lines
686 B
JavaScript
32 lines
686 B
JavaScript
import PropTypes from 'prop-types';
|
|
import React from 'react';
|
|
import PageContent from 'Components/Page/PageContent';
|
|
import styles from './NotFound.css';
|
|
|
|
function NotFound({ message }) {
|
|
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>
|
|
);
|
|
}
|
|
|
|
NotFound.propTypes = {
|
|
message: PropTypes.string.isRequired
|
|
};
|
|
|
|
NotFound.defaultProps = {
|
|
message: 'You must be lost, nothing to see here.'
|
|
};
|
|
|
|
export default NotFound;
|