feat: add dropdown for favorite items

This commit is contained in:
Sonny
2024-07-22 12:10:47 +02:00
parent 2c499a7789
commit 442a1003bb
12 changed files with 174 additions and 94 deletions

View File

@@ -1,12 +1,12 @@
import { createContext } from 'react';
import { Link } from '~/types/app';
import { LinkWithCollection } from '~/types/app';
type FavoritesContextType = {
favorites: Link[];
favorites: LinkWithCollection[];
};
const iFavoritesContextState = {
favorites: [] as Link[],
favorites: [] as LinkWithCollection[],
};
const FavoritesContext = createContext<FavoritesContextType>(