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