-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathindex.tsx
More file actions
44 lines (41 loc) · 1012 Bytes
/
index.tsx
File metadata and controls
44 lines (41 loc) · 1012 Bytes
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
import { Link, Stack, Tooltip, Typography } from "@mui/material";
import {ReactComponent as QuestionMarkIcon} from "../../../assets/icons/questionMark.svg";
import { GuiderStyler } from "./style";
const Guider = ({
title,
description,
link,
}: {
title: string;
description: string;
link: string;
}) => {
const theme = GuiderStyler();
return (
<Tooltip
sx={{ fontSize: 13 }}
title={
<Stack
className="tooltip-note"
sx={{
display: "flex",
gap: 3,
}}
>
<Typography fontSize={14} fontWeight={"bold"}>
{title}
</Typography>
<Typography fontSize={13}>{description}</Typography>
<Link href={`${link}`} sx={{ color: "white" }} fontSize={13}>
Read more
</Link>
</Stack>
}
>
<Stack component={"div"} sx={theme.helperFrameStyle}>
<QuestionMarkIcon />
</Stack>
</Tooltip>
);
};
export default Guider;