import { VFC } from 'react'; import { useIntl } from 'react-intl'; import styles from './spinner.module.scss'; export type SpinnerProps = { /** * The loading message. Default: "Loading...". */ message?: string; }; /** * Spinner component * * Render a loading message with animation. */ const Spinner: VFC = ({ message }) => { const intl = useIntl(); return (
{message || intl.formatMessage({ defaultMessage: 'Loading...', description: 'Spinner: loading text', id: 'q9cJQe', })}
); }; export default Spinner; ain'>index : www.armandphilippot.com
The frontend of my personal website.Armand Philippot
summaryrefslogtreecommitdiffstats
path: root/src/components/SearchForm/SearchForm.module.scss
blob: 4debfbb5fc6c49726a89c41f4b8717d3bf46ef52 (plain)
1
2
3
4
5
6