import React, { ReactElement } from "react"; import { ComicVineSearchForm } from "../ComicVineSearchForm"; import MatchResult from "./MatchResult"; import { isEmpty } from "lodash"; import { useStore } from "../../store"; import { useShallow } from "zustand/react/shallow"; export const ComicVineMatchPanel = (comicVineData): ReactElement => { const { comicObjectId, comicVineMatches } = comicVineData.props; const { comicvine } = useStore( useShallow((state) => ({ comicvine: state.comicvine, })), ); return ( <>
{!isEmpty(comicVineMatches) ? ( ) : ( <>

ComicVine match results are an approximation.

Auto-matching is not available yet. If you see no results or poor quality ones, you can override the search query parameters to get better ones.

{comicvine.scrapingStatus}
)}
); }; export default ComicVineMatchPanel;