Delete {selectedLinks.length}
+Delete {selectedLinks.length} Link{selectedLinks.length > 1 ? "s" : ""}!
diff --git a/components/ModalContent/BulkEditLinksModal.tsx b/components/ModalContent/BulkEditLinksModal.tsx new file mode 100644 index 0000000..9aff5fe --- /dev/null +++ b/components/ModalContent/BulkEditLinksModal.tsx @@ -0,0 +1,150 @@ +import React, { useEffect, useState } from "react"; +import CollectionSelection from "@/components/InputSelect/CollectionSelection"; +import TagSelection from "@/components/InputSelect/TagSelection"; +import TextInput from "@/components/TextInput"; +import unescapeString from "@/lib/client/unescapeString"; +import useLinkStore from "@/store/links"; +import { LinkIncludingShortenedCollectionAndTags } from "@/types/global"; +import toast from "react-hot-toast"; +import Link from "next/link"; +import Modal from "../Modal"; + +type Props = { + onClose: Function; +}; + +export default function EditLinkModal({ onClose }: Props) { + const { updateLink, updateLinksById } = useLinkStore(); + const [submitLoader, setSubmitLoader] = useState(false); + const [updatedValues, setUpdatedValues] = useStateEdit Link
+ + + + {link.url ? ( + + +{shortendURL}
+ + ) : undefined} + +Name
+Collection
+ {link.collection.name ? ( +Tags
+Description
+