frontPanel/src/assets/icons/Info.tsx

51 lines
1.2 KiB
TypeScript
Raw Normal View History

import { IconButton, SxProps } from "@mui/material";
2023-04-15 09:10:59 +00:00
2023-08-15 12:20:09 +00:00
type InfoProps = {
width?: number;
height?: number;
sx?: SxProps;
onClick?: any;
2023-12-31 02:53:25 +00:00
className?: string;
color?: string;
2023-08-15 12:20:09 +00:00
};
2023-12-31 02:53:25 +00:00
export default function Info({
width = 20,
height = 20,
sx,
onClick,
className,
color = "#7e2aea",
2023-12-31 02:53:25 +00:00
}: InfoProps) {
2023-04-15 09:10:59 +00:00
return (
2023-12-31 02:53:25 +00:00
<IconButton sx={sx} className={className} onClick={onClick}>
2023-08-11 07:49:16 +00:00
<svg
2023-08-15 12:20:09 +00:00
width={width}
height={height}
2023-08-11 07:49:16 +00:00
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
2023-04-15 09:10:59 +00:00
<path
d="M10 19C14.9706 19 19 14.9706 19 10C19 5.02944 14.9706 1 10 1C5.02944 1 1 5.02944 1 10C1 14.9706 5.02944 19 10 19Z"
stroke={color}
2023-08-11 13:59:00 +00:00
strokeWidth="1.5"
2023-08-18 11:26:25 +00:00
strokeLinecap="round"
2023-08-11 07:49:16 +00:00
strokeLinejoin="round"
2023-04-15 09:10:59 +00:00
/>
<path
d="M9.25 9.25H10V14.5H10.75"
stroke={color}
2023-08-11 13:59:00 +00:00
strokeWidth="1.5"
2023-08-18 11:26:25 +00:00
strokeLinecap="round"
2023-08-11 07:49:16 +00:00
strokeLinejoin="round"
2023-04-15 09:10:59 +00:00
/>
<path
d="M9.8125 7C10.4338 7 10.9375 6.49632 10.9375 5.875C10.9375 5.25368 10.4338 4.75 9.8125 4.75C9.19118 4.75 8.6875 5.25368 8.6875 5.875C8.6875 6.49632 9.19118 7 9.8125 7Z"
fill={color}
2023-04-15 09:10:59 +00:00
/>
</svg>
</IconButton>
);
}