-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathindex.tsx
More file actions
49 lines (48 loc) · 1.17 KB
/
index.tsx
File metadata and controls
49 lines (48 loc) · 1.17 KB
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
// Copyright 2023 DatabendLabs.
import React, { FC, ReactElement } from "react";
import styles from "./styles.module.scss";
import Avatar from "@site/static/img/avatar/default-avatar.jpeg";
import clsx from "clsx";
interface IProps {
name: string;
position: string;
description: string;
date: string;
avatar?: string;
linkForDate?: string;
}
const CustomerVoiceCard: FC<IProps> = ({
name,
position,
description,
date,
avatar = Avatar,
linkForDate,
}): ReactElement => {
return (
<div className={styles.card}>
<div className={styles.top}>
<a>
<img className={styles.avatar} src={avatar} />
</a>
<div style={{ flex: 1 }}>
<div className={styles.name}>{name}</div>
<div className={styles.position}>{position}</div>
</div>
</div>
<div className={styles.description}>{description}</div>
{linkForDate ? (
<a
className={clsx(styles.date, styles.linkDate)}
target="_blank"
href={linkForDate}
>
{date}
</a>
) : (
<div className={styles.date}>{date}</div>
)}
</div>
);
};
export default CustomerVoiceCard;