frontAnswerer/lib/assets/icons/questionsPage/FlagIcon.tsx
2024-05-31 19:41:18 +03:00

33 lines
957 B
TypeScript

import { Box } from "@mui/material";
interface Props {
color: string;
width?: number;
}
export default function FlagIcon({ color, width = 30 }: Props) {
return (
<Box
sx={{
height: "30px",
width: width + "px",
display: "flex",
alignItems: "center",
justifyContent: "center",
}}
>
<svg width={width} height={width} viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M5 27V6" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />
<path d="M5 21.0016C13 15.0016 19 27.0016 27 21.0016V6.00158C19 12.0016 13 0.00158215 5 6.00158" fill={color} />
<path
d="M5 21.0016C13 15.0016 19 27.0016 27 21.0016V6.00158C19 12.0016 13 0.00158203 5 6.00158"
stroke={color}
strokeWidth="1.6"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</Box>
);
}