components.errors.ErrorPage.jsx Maven / Gradle / Ivy
The newest version!
import React from 'react'
import PropTypes from 'prop-types'
const headerStyle = { fontSize: '10rem' }
const spanStyle = { fontSize: '2rem' }
function ErrorPage({ status, error }) {
return (
{status && {status}
}
{error}
)
}
ErrorPage.propTypes = {
status: PropTypes.number,
error: PropTypes.string,
}
export default ErrorPage