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

Import from{" "} {IMPORTERS_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.display_name}
Delete import
);