import styles from '../../styles/home/categories.module.scss';
import { Link } from '../../types';
export default function Favorites({ favorites }: { favorites: Link[]; }) {
return (
Favoris
{favorites.length === 0
?
: favorites.map((link, key) => (
))}
)
}
function NoFavLink(): JSX.Element {
return (
Aucun favoris
)
}
function LinkFavorite({ link }: { link: Link; }): JSX.Element {
const { name, url, category } = link;
return (
{name} - {category.name}
)
}