// 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"; type Props = { service: IImporterService; refreshing: boolean; handleDelete: () => void; }; const importersList: { [key: string]: string } = { github: "GitHub", }; export const SingleImport: React.FC = ({ service, refreshing, handleDelete }) => (

Import from {importersList[service.service]} 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
);