UNPKG

@boomerang-io/carbon-addons-boomerang-react

Version:
24 lines (21 loc) 1.39 kB
import React from 'react'; import ForbiddenErrorBackground from './ForbiddenErrorBackground.js'; import GraphicWrangler from './GraphicWrangler/GraphicWrangler.js'; import ErrorPage from '../ErrorPage/ErrorPage.js'; import ErrorPageCore from '../ErrorPageCore/ErrorPageCore.js'; import { prefix } from '../../internal/settings.js'; /* IBM Confidential 694970X, 69497O0 © Copyright IBM Corp. 2022, 2024 */ function Error403(props) { const { theme = "core" } = props; if (theme === "boomerang") { const { header = "403 - Access Forbidden", title = "You’ve found yourself in deep water.", message = "You shouldn’t be here - contact the local authorities if you disagree.", graphic = React.createElement(GraphicWrangler, null), ...rest } = props; return React.createElement(ErrorPage, { header: header, title: title, message: message, graphic: graphic, ...rest }); } const { header = "403 Access Forbidden", title = "Looks like you've taken a wrong turn.", message = "You shouldn’t be here - contact the local authorities if you disagree.", graphic = React.createElement(ForbiddenErrorBackground, { className: `${prefix}--bmrg-error-page-core__background` }), ...rest } = props; return React.createElement(ErrorPageCore, { header: header, title: title, message: message, graphic: graphic, ...rest }); } export { Error403 as default };