Abstracted spoolicon into its own component

This commit is contained in:
Donkie
2024-06-08 22:48:14 +02:00
parent f3d23ad9fe
commit 30098e0213
2 changed files with 17 additions and 10 deletions

View File

@@ -0,0 +1,15 @@
import Icon from "@ant-design/icons";
import SpoolSVG from "../icon_spool.svg?react";
export default function SpoolIcon(props: { color: string }) {
return (
<Icon
component={SpoolSVG}
style={{
color: "#" + props.color,
fontSize: 42,
marginRight: 0,
}}
/>
);
}