8b4b9ef8da
Forcing "type" to be explicit, works best will rollup on the frontend to exclude depdendencies
14 lines
484 B
TypeScript
14 lines
484 B
TypeScript
import { useTheme } from '@emotion/react';
|
|
|
|
import IconGoogleCalendarRaw from '@assets/icons/google-calendar.svg?react';
|
|
import { type IconComponentProps } from '@ui/display/icon/types/IconComponent';
|
|
|
|
type IconGoogleCalendarProps = Pick<IconComponentProps, 'size'>;
|
|
|
|
export const IconGoogleCalendar = (props: IconGoogleCalendarProps) => {
|
|
const theme = useTheme();
|
|
const size = props.size ?? theme.icon.size.lg;
|
|
|
|
return <IconGoogleCalendarRaw height={size} width={size} />;
|
|
};
|