Split from https://github.com/twentyhq/twenty/pull/4518 Part of https://github.com/twentyhq/twenty/issues/4766
14 lines
434 B
TypeScript
14 lines
434 B
TypeScript
import { useTheme } from '@emotion/react';
|
|
|
|
import IconGmailRaw from '@ui/display/icon/assets/gmail.svg?react';
|
|
import { IconComponentProps } from '@ui/display/icon/types/IconComponent';
|
|
|
|
type IconGmailProps = Pick<IconComponentProps, 'size'>;
|
|
|
|
export const IconGmail = (props: IconGmailProps) => {
|
|
const theme = useTheme();
|
|
const size = props.size ?? theme.icon.size.lg;
|
|
|
|
return <IconGmailRaw height={size} width={size} />;
|
|
};
|