Error

Generic error message

() => {
return (
<Error
errorCode="thing"
homepageUrl={'/'}
recognitionPermission={true}
recognizeUrl={'/docs/Header'}
routerBack={console.log}
/>
);
};

Props

PropTypeDefaultDescription
errorCodestringError code to display, needs to be generated
homepageUrlstring/URL for homepage
recognitionPermissionbooleanfalseBoolean flag of whether or not the client does or does not have permission to recognize, if true renders a "Recognize someone" button/link
recognizeUrlstringURL for recognition flow
routerBackfuncFunction given to return back to previous page, renders "Go back" button if defined