improvements

This commit is contained in:
daniel31x13
2023-12-13 06:59:36 -05:00
parent ca3eb29c48
commit a001f70b9d
11 changed files with 138 additions and 69 deletions
+28
View File
@@ -0,0 +1,28 @@
import { Link } from "@prisma/client";
export function screenshotAvailable(link: any) {
return (
link &&
link.screenshotPath &&
link.screenshotPath !== "pending" &&
link.screenshotPath !== "failed"
);
}
export function pdfAvailable(link: any) {
return (
link &&
link.pdfPath &&
link.pdfPath !== "pending" &&
link.pdfPath !== "failed"
);
}
export function readabilityAvailable(link: any) {
return (
link &&
link.readabilityPath &&
link.readabilityPath !== "pending" &&
link.readabilityPath !== "failed"
);
}