Props for MatchImportExportSection component.

interface MatchImportExportSectionProps {
/** Currently selected match import file. */
matchImportFile: File | null;
/** Error message if match import file validation fails. */
matchImportError: string | null;
/** Whether match import is currently in progress. */
isImportingMatches: boolean;
/** Callback when user selects a match import file. */
onMatchImportFileSelect: (event: React.ChangeEvent<HTMLInputElement>) => void;
/** Callback to trigger match import with selected strategy. */
onImportMatches: (
file: File,
strategy: "replace" | "merge" | "skip-duplicates",
) => void;
}
interface MatchImportExportSectionProps {
    matchImportFile: null | File;
    matchImportError: null | string;
    isImportingMatches: boolean;
    onMatchImportFileSelect: (event: ChangeEvent<HTMLInputElement>) => void;
    onImportMatches: (
        file: File,
        strategy: "replace" | "merge" | "skip-duplicates",
    ) => void;
}

Properties

matchImportFile: null | File

Currently selected match import file.

matchImportError: null | string

Error message if match import file validation fails.

isImportingMatches: boolean

Whether match import is currently in progress.

onMatchImportFileSelect: (event: ChangeEvent<HTMLInputElement>) => void

Callback when user selects a match import file.

onImportMatches: (
    file: File,
    strategy: "replace" | "merge" | "skip-duplicates",
) => void

Callback to trigger match import with selected strategy.