mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
19 lines
367 B
TypeScript
19 lines
367 B
TypeScript
import React from 'react';
|
|
|
|
import IconSvg from 'ui/shared/IconSvg';
|
|
|
|
interface Props extends React.HTMLAttributes<HTMLDivElement> {
|
|
isFavorite: boolean;
|
|
};
|
|
|
|
const FavoriteIcon = ({ isFavorite, ...rest }: Props) => {
|
|
return (
|
|
<IconSvg
|
|
name={ isFavorite ? 'heart_filled' : 'heart_outline' }
|
|
{ ...rest }
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default FavoriteIcon;
|