Fixed builds failing

This commit is contained in:
Isaac Wise
2024-02-10 02:34:52 -06:00
parent c78aa2da0d
commit e0705ece4f
3 changed files with 8 additions and 6 deletions
+2 -4
View File
@@ -1,10 +1,8 @@
import useAccountStore from "@/store/account";
import { ArchivedFormat, LinkIncludingShortenedCollectionAndTags } from "@/types/global";
import { AccountSettings, ArchivedFormat, LinkIncludingShortenedCollectionAndTags } from "@/types/global";
import { LinksRouteTo } from "@prisma/client";
import { pdfAvailable, readabilityAvailable, screenshotAvailable } from "../shared/getArchiveValidity";
export const generateLinkHref = (link: LinkIncludingShortenedCollectionAndTags): string => {
const { account } = useAccountStore();
export const generateLinkHref = (link: LinkIncludingShortenedCollectionAndTags, account: AccountSettings): string => {
// Return the links href based on the account's preference
// If the user's preference is not available, return the original link