import { forwardRef, type ForwardRefRenderFunction, type HTMLAttributes, } from 'react'; import { useIntl } from 'react-intl'; import { Spinner } from '../../atoms'; import styles from './page.module.scss'; export type LoadingPageCommentsProps = Omit< HTMLAttributes, 'children' >; const LoadingPageCommentsWithRef: ForwardRefRenderFunction< HTMLDivElement, LoadingPageCommentsProps > = ({ className = '', ...props }, ref) => { const wrapperClass = `${styles.comments} ${className}`; const intl = useIntl(); const loadingMsg = intl.formatMessage({ defaultMessage: 'The comments are loading...', description: 'LoadingPageComments: loading message', id: 'gYbxP4', }); return (
{loadingMsg}
); }; export const LoadingPageComments = forwardRef(LoadingPageCommentsWithRef); me='id' value='5b1172662662df1bc8a05dadda14ac9fd827c347'/> The frontend of my personal website.Armand Philippot
summaryrefslogtreecommitdiffstats
path: root/src/components/PostHeader/PostHeader.tsx
blob: c0a6b68e73ebaf5cadf58aa3129eee6993270afc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57