import type { WidgetProps } from "widgets/BaseWidget";
import type { Alignment } from "@blueprintjs/core";
import type { IconName } from "@blueprintjs/icons";
import type { ButtonPlacement } from "components/constants";
export interface CodeScannerWidgetProps extends WidgetProps {
label: string;
isDisabled: boolean;
tooltip?: string;
onCodeDetected?: string;
buttonColor: string;
borderRadius: string;
boxShadow?: string;
iconName?: IconName;
iconAlign?: Alignment;
placement?: ButtonPlacement;
scannerLayout: ScannerLayout;
defaultCamera: string;
}
export enum ScannerLayout {
ALWAYS_ON = "ALWAYS_ON",
CLICK_TO_SCAN = "CLICK_TO_SCAN",