import PostMeta from '@components/PostMeta/PostMeta'; import { t } from '@lingui/macro'; import { ArticleMeta, ArticlePreview } from '@ts/types/articles'; import Link from 'next/link'; import styles from './PostPreview.module.scss'; import Image from 'next/image'; import { ButtonLink } from '@components/Buttons'; import { ArrowIcon } from '@components/Icons'; type TitleLevel = 2 | 3 | 4 | 5 | 6; const PostPreview = ({ post, titleLevel, }: { post: ArticlePreview; titleLevel: TitleLevel; }) => { const TitleTag = `h${titleLevel}` as keyof JSX.IntrinsicElements; const meta: ArticleMeta = { commentCount: post.commentCount ? post.commentCount : 0, dates: post.dates, thematics: post.thematics, }; return (
{post.featuredImage && Object.keys(post.featuredImage).length > 0 && (
{post.featuredImage.altText}
)}
{post.title}
); }; export default PostPreview; f='/www.armandphilippot.com/diff/src/components/Icons/Contact/Contact.tsx?id=d8a5c90ef58fa451c19e8d9e0aab0c493a0a6a9f'>diffstats
path: root/src/components/Icons/Contact/Contact.tsx
blob: 19295d0bac4953b1e27d1864fdb49a74958e63a7 (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