Props for the MatchActions component.

export interface MatchActionsProps {
match: MangaMatchResult;
onManualSearch?: (kenmeiManga: KenmeiManga) => void;
onAcceptMatch?: (match: MangaMatchResult) => void;
onRejectMatch?: (match: MangaMatchResult) => void;
onResetToPending?: (match: MangaMatchResult) => void;
onSelectAlternative?: (
match: MangaMatchResult,
alternativeIndex: number,
autoAccept?: boolean,
directAccept?: boolean,
) => void;
handleKeyDown: (e: React.KeyboardEvent, cb: () => void) => void;
isLoading?: boolean;
}
interface MatchActionsProps {
    match: MangaMatchResult;
    onManualSearch?: (kenmeiManga: KenmeiManga) => void;
    onAcceptMatch?: (match: MangaMatchResult) => void;
    onRejectMatch?: (match: MangaMatchResult) => void;
    onResetToPending?: (match: MangaMatchResult) => void;
    onSelectAlternative?: (
        match: MangaMatchResult,
        alternativeIndex: number,
        autoAccept?: boolean,
        directAccept?: boolean,
    ) => void;
    handleKeyDown: (e: KeyboardEvent, cb: () => void) => void;
    isLoading?: boolean;
}

Properties

The manga match result to display actions for.

onManualSearch?: (kenmeiManga: KenmeiManga) => void

Callback to trigger manual search for the manga.

onAcceptMatch?: (match: MangaMatchResult) => void

Callback to accept the match.

onRejectMatch?: (match: MangaMatchResult) => void

Callback to reject the match.

onResetToPending?: (match: MangaMatchResult) => void

Callback to reset match to pending status.

onSelectAlternative?: (
    match: MangaMatchResult,
    alternativeIndex: number,
    autoAccept?: boolean,
    directAccept?: boolean,
) => void

Callback to select an alternative match.

handleKeyDown: (e: KeyboardEvent, cb: () => void) => void

Handler for keyboard shortcuts on action buttons.

isLoading?: boolean

Optional flag to disable buttons while operation is in progress.