Spaces:
Configuration error
Configuration error
Download src/components/common/ErrorMessage.tsx from SreejithSHR/umami: direct link, hf CLI and curl.
- Browser
- Download file 464 Bytes
-
https://huggingface.co/spaces/SreejithSHR/umami/resolve/main/src/components/common/ErrorMessage.tsx
- Command line
-
hf download hf://spaces/SreejithSHR/umami/src/components/common/ErrorMessage.tsx
-
curl -L -o ErrorMessage.tsx https://huggingface.co/spaces/SreejithSHR/umami/resolve/main/src/components/common/ErrorMessage.tsx
464 Bytes
| import { Icon, Icons, Text } from 'react-basics'; | |
| import styles from './ErrorMessage.module.css'; | |
| import { useMessages } from 'components/hooks'; | |
| export function ErrorMessage() { | |
| const { formatMessage, messages } = useMessages(); | |
| return ( | |
| <div className={styles.error}> | |
| <Icon className={styles.icon} size="lg"> | |
| <Icons.Alert /> | |
| </Icon> | |
| <Text>{formatMessage(messages.error)}</Text> | |
| </div> | |
| ); | |
| } | |
| export default ErrorMessage; | |