import { baseUrl } from "@/api/baseUrl"; import ActivityIndicator from "../indicators/activity-indicator"; import { Card } from "../ui/card"; import { LuPlay, LuTrash } from "react-icons/lu"; import { Button } from "../ui/button"; type ExportProps = { file: { name: string; }; onSelect: (file: string) => void; onDelete: (file: string) => void; }; export default function ExportCard({ file, onSelect, onDelete }: ExportProps) { return ( {file.name.startsWith("in_progress") ? ( <>
{file.name.substring(12, file.name.length - 4)}
) : ( <> {file.name.substring(0, file.name.length - 4)} )}
); }