frontAnswerer/lib/assets/icons/questionsPage/heartIcon.tsx

32 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-12-16 14:55:56 +00:00
import { Box } from "@mui/material";
interface Props {
color: string;
2024-05-31 16:41:18 +00:00
width: number;
2023-12-16 14:55:56 +00:00
}
2024-03-26 00:06:54 +00:00
export default function HeartIcon({ color, width }: Props) {
2023-12-16 14:55:56 +00:00
return (
<Box
sx={{
height: "30px",
2024-03-26 00:06:54 +00:00
width: width + "px",
2023-12-16 14:55:56 +00:00
display: "flex",
alignItems: "center",
justifyContent: "center",
}}
>
2024-05-31 16:41:18 +00:00
<svg width={width} height={width} viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
2023-12-16 14:55:56 +00:00
<path
d="M16 27C16 27 3.5 20 3.5 11.5C3.5 9.99737 4.02062 8.54114 4.97328 7.37908C5.92593 6.21703 7.25178 5.42093 8.72525 5.12624C10.1987 4.83154 11.7288 5.05646 13.0551 5.76272C14.3814 6.46898 15.4221 7.61296 16 9.00001C16.5779 7.61296 17.6186 6.46898 18.9449 5.76272C20.2712 5.05646 21.8013 4.83154 23.2748 5.12624C24.7482 5.42093 26.0741 6.21703 27.0267 7.37908C27.9794 8.54114 28.5 9.99737 28.5 11.5C28.5 20 16 27 16 27Z"
fill={color}
stroke={color}
strokeWidth="1.6"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</Box>
);
}