feat: created the Link component

This commit is contained in:
Daniel
2023-03-10 22:55:33 +03:30
parent 0d5579b56d
commit 48bdf29161
10 changed files with 144 additions and 33 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
import { create } from "zustand";
import { LinkAndTags, NewLink } from "@/types/global";
import { ExtendedLink, NewLink } from "@/types/global";
type LinkSlice = {
links: LinkAndTags[];
links: ExtendedLink[];
setLinks: () => void;
addLink: (linkName: NewLink) => Promise<boolean>;
updateLink: (link: LinkAndTags) => void;
updateLink: (link: ExtendedLink) => void;
removeLink: (linkId: number) => void;
};