2023-12-31 02:53:25 +00:00
|
|
|
import { Box } from "@mui/material";
|
2023-12-30 00:29:13 +00:00
|
|
|
|
2023-12-31 02:53:25 +00:00
|
|
|
interface Color {
|
|
|
|
color?: string;
|
|
|
|
}
|
2024-02-26 14:32:32 +00:00
|
|
|
export default function ColorRingIcon({ color }: Color) {
|
2023-12-31 02:53:25 +00:00
|
|
|
return (
|
|
|
|
<Box
|
|
|
|
sx={{
|
|
|
|
height: "20px",
|
|
|
|
width: "20px",
|
|
|
|
display: "flex",
|
|
|
|
alignItems: "center",
|
|
|
|
justifyContent: "center",
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
width="17"
|
|
|
|
height="17"
|
|
|
|
viewBox="0 0 17 17"
|
|
|
|
fill="none"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
>
|
|
|
|
<rect
|
|
|
|
x="0.5"
|
|
|
|
y="0.5"
|
|
|
|
width="16"
|
|
|
|
height="16"
|
|
|
|
rx="8"
|
2024-02-26 14:32:32 +00:00
|
|
|
fill={color || "#FFFFFF"}
|
|
|
|
stroke={color ? "transparent" : "#9A9AAF"}
|
2023-12-31 02:53:25 +00:00
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</Box>
|
|
|
|
);
|
2023-12-30 00:29:13 +00:00
|
|
|
}
|