import React, { VFC } from 'react'; import { IconButton, SxProps, Theme } from '@mui/material'; import { ConditionallyRender } from '../ConditionallyRender/ConditionallyRender'; import { Star as StarIcon, StarBorder as StarBorderIcon, } from '@mui/icons-material'; import { TooltipResolver } from '../TooltipResolver/TooltipResolver'; interface IFavoriteIconButtonProps { onClick: (event?: any) => void; isFavorite: boolean; size?: 'medium' | 'large'; sx?: SxProps; } export const FavoriteIconButton: VFC = ({ onClick, isFavorite, size = 'large', sx, }) => { return ( size === 'medium' ? theme.spacing(2) : theme.spacing(3), }} /> } elseShow={ size === 'medium' ? theme.spacing(2) : theme.spacing(3), }} /> } /> ); };