// ui import { CustomMenu } from "components/ui"; // icons import { TrashIcon } from "@heroicons/react/24/outline"; // helpers import { renderShortDateWithYearFormat } from "helpers/date-time.helper"; // types import { IImporterService } from "types"; // constants import { IMPORTERS_EXPORTERS_LIST } from "constants/workspace"; type Props = { service: IImporterService; refreshing: boolean; handleDelete: () => void; }; export const SingleImport: React.FC = ({ service, refreshing, handleDelete }) => (

Import from{" "} {IMPORTERS_EXPORTERS_LIST.find((i) => i.provider === service.service)?.title} {" "} to {service.project_detail.name} {refreshing ? "Refreshing..." : service.status}

{renderShortDateWithYearFormat(service.created_at)}| Imported by{" "} {service.initiated_by_detail.first_name && service.initiated_by_detail.first_name !== "" ? service.initiated_by_detail.first_name + " " + service.initiated_by_detail.last_name : service.initiated_by_detail.email}
Delete import
);