"use client"; // ui import { Trash2 } from "lucide-react"; import { IImporterService } from "@plane/types"; import { CustomMenu } from "@plane/ui"; // icons // helpers import { IMPORTERS_LIST } from "@/constants/workspace"; import { renderFormattedDate } from "@/helpers/date-time.helper"; // types // constants 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}

{renderFormattedDate(service.created_at)}| Imported by {service.initiated_by_detail?.display_name}
Delete import
);