Download spectrum/src/views/viewHelpers/errorView.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 875 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/views/viewHelpers/errorView.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/views/viewHelpers/errorView.js
-
curl -L -o errorView.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/views/viewHelpers/errorView.js
875 Bytes
| // @flow | |
| import React from 'react'; | |
| import { Emoji, Heading, Description, Card } from './style'; | |
| import { ViewGrid, CenteredGrid } from 'src/components/layout'; | |
| type Props = { | |
| emoji?: string, | |
| heading?: string, | |
| subheading?: string, | |
| }; | |
| export const ErrorView = (props: Props) => { | |
| const { | |
| emoji = '😣', | |
| heading = 'We ran into trouble loading this page', | |
| subheading = 'You may be trying to view something that is deleted, or Spectrum is just having a hiccup. If you think something has gone wrong, please contact us.', | |
| ...rest | |
| } = props; | |
| return ( | |
| <ViewGrid {...rest}> | |
| <CenteredGrid> | |
| <Card> | |
| <Emoji role="img" aria-label="Oops"> | |
| {emoji} | |
| </Emoji> | |
| <Heading>{heading}</Heading> | |
| <Description>{subheading}</Description> | |
| </Card> | |
| </CenteredGrid> | |
| </ViewGrid> | |
| ); | |
| }; | |