Extend interface

This commit is contained in:
Nicola Benaglia 2025-04-12 17:51:10 +02:00
parent 34d8f2f844
commit 72e47ab38e

View File

@ -1,13 +1,14 @@
import { useTheme } from '@mui/material'; import { useTheme } from '@mui/material';
import { SVGProps } from './interfaces';
// TODO: extend interface export const SaveIcon: React.FC<SVGProps> = ({ color, ...children }) => {
export const SaveIcon = ({ color }) => {
const theme = useTheme(); const theme = useTheme();
const setColor = color ? color : theme.palette.text.primary; const setColor = color ? color : theme.palette.text.primary;
return ( return (
<svg <svg
{...children}
width="24" width="24"
height="24" height="24"
viewBox="0 0 24 24" viewBox="0 0 24 24"