Abstracted spoolicon into its own component
This commit is contained in:
15
client/src/components/spoolIcon.tsx
Normal file
15
client/src/components/spoolIcon.tsx
Normal 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,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user