Split from https://github.com/twentyhq/twenty/pull/4518 Part of https://github.com/twentyhq/twenty/issues/4766
14 lines
489 B
TypeScript
14 lines
489 B
TypeScript
import { useTheme } from '@emotion/react';
|
|
|
|
import IconGoogleCalendarRaw from '@ui/display/icon/assets/google-calendar.svg?react';
|
|
import { 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} />;
|
|
};
|