Props for the SearchModal component.

export interface SearchModalProps {
isOpen: boolean;
searchTarget?: KenmeiManga;
accessToken: string;
bypassCache: boolean;
onClose: () => void;
onSelectMatch: (manga: AniListManga) => void;
}
interface SearchModalProps {
    isOpen: boolean;
    searchTarget?: KenmeiManga;
    accessToken: string;
    bypassCache: boolean;
    onClose: () => void;
    onSelectMatch: (manga: AniListManga) => void;
}

Properties

isOpen: boolean

Whether the modal is open.

searchTarget?: KenmeiManga

The Kenmei manga to search for a match.

accessToken: string

The AniList access token.

bypassCache: boolean

Whether to bypass the cache for searching.

onClose: () => void

Callback to close the modal.

onSelectMatch: (manga: AniListManga) => void

Callback when a manga match is selected.