@cardscan.ai/insurance-cardscan-react
Version:
A library that makes it easy to add health insurance card scanning to any web application
15 lines (14 loc) • 503 B
TypeScript
export type CameraPermissionModalConfig = {
enabled?: boolean;
title?: string;
text?: string;
retryButtonText?: string;
webToMobileButtonText?: string;
helpButtonText?: string;
};
export type CameraPermissionState = "idle" | "requesting" | "granted" | "denied" | "notFoundDevice" | "hardblock" | "retry";
export type ErrorModalName = "none" | "cameraPermission" | "webToMobile" | "help";
export type ErrorModalT = {
show: boolean;
modal: ErrorModalName;
};