To use inside a project please install the package first:
npm install @e2e-cxs/components
To use the component inside project:
import { ErrorPage } from '@e2e-cxs/components'
-
errorCode
- this might be (404, 500, 401 or 404) - should be string value -
applicationKey
- this the current application key used to access - should be string value -
gatewayUrl
- get the current env variable and pass it to the component - should be string value
<ErrorPage errorCode={errorCode} applicationKey={applicationKey} gatewayUrl={gatewayUrl}/>
Note: If image is available the component will render the image and the message. If not will show generic error message for authorization related issue and not found page.