import React, { ReactElement } from "react"; import Card from "../shared/Carda"; import { Link } from "react-router-dom"; import ellipsize from "ellipsize"; import { isEmpty, isNil, isUndefined, map } from "lodash"; import { detectIssueTypes } from "../../shared/utils/tradepaperback.utils"; import { determineCoverFile, determineExternalMetadata, } from "../../shared/utils/metadata.utils"; import { LIBRARY_SERVICE_HOST } from "../../constants/endpoints"; import Header from "../shared/Header"; import useEmblaCarousel from "embla-carousel-react"; type RecentlyImportedProps = { comics: any; }; export const RecentlyImported = ( comics: RecentlyImportedProps, ): ReactElement => { console.log(comics); // embla carousel const [emblaRef, emblaApi] = useEmblaCarousel({ loop: false, align: "start", containScroll: "trimSnaps", slidesToScroll: 1, }); return (