summaryrefslogtreecommitdiffstats
path: root/src/components/MetaItems/Author/Author.tsx
blob: c3d78c231291d66bfa038ad5d4435feae6da3cf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { MetaKind } from '@ts/types/app';
import { useIntl } from 'react-intl';
import { MetaItem } from '..';

const Author = ({ name, kind }: { name: string; kind: MetaKind }) => {
  const intl = useIntl();

  return (
    <MetaItem
      title={intl.formatMessage({
        defaultMessage: 'Written by:',
        description: 'Author: article author meta label',
      })}
      value={name}
      kind={kind}
    />
  );
};

export default Author;