type FavoriteIconProps = { isFavorite?: boolean; }; export function FavoriteIcon(props: FavoriteIconProps) { const { isFavorite } = props; if (!isFavorite) { return ( ); } return ( ); }