import { List, ValuesOf } from '@iqser/common-ui/lib/utils';

export const IMAGE_CATEGORIES: readonly string[] = ['signature', 'logo', 'formula', 'image'];
export const ActionsHelpModeKeys = {
    redaction: 'redaction',
    'manual-redaction': 'redaction',
    recommendation: 'recommendation',
    skipped: 'skipped',
    hint: 'hint_text',
    'hint-ocr': 'hint_picture',
    'hint-formula': 'picture',
    'hint-image': 'hint_images',
} as const;

export const ALL_HOTKEYS: List = ['Escape', 'F', 'f', 'ArrowUp', 'ArrowDown', 'H', 'h'] as const;

export const HeaderElements = {
    SHAPE_TOOL_GROUP_BUTTON: 'SHAPE_TOOL_GROUP_BUTTON',
    ROTATE_LEFT_BUTTON: 'ROTATE_LEFT_BUTTON',
    ROTATE_RIGHT_BUTTON: 'ROTATE_RIGHT_BUTTON',
    APPLY_ROTATION: 'APPLY_ROTATION',
    DISCARD_ROTATION: 'DISCARD_ROTATION',
    COMPARE_BUTTON: 'COMPARE_BUTTON',
    CLOSE_COMPARE_BUTTON: 'CLOSE_COMPARE_BUTTON',
    TOGGLE_TOOLTIPS: 'TOGGLE_TOOLTIPS',
    TOGGLE_LAYERS: 'TOGGLE_LAYERS',
    TOGGLE_READABLE_REDACTIONS: 'TOGGLE_READABLE_REDACTIONS',
    LOAD_ALL_ANNOTATIONS: 'LOAD_ALL_ANNOTATIONS',
} as const;

export type HeaderElementType = ValuesOf<typeof HeaderElements>;

export const TextPopups = {
    REDACT_TEXT: 'redact-text',
    ADD_HINT: 'add-hint',
    ADD_RECTANGLE: 'add-rectangle',
    ADD_FALSE_POSITIVE: 'add-false-positive',
} as const;
