import React, { useState } from "react"; import { Download, Play } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; import { ResourceModal } from "./resource-modal"; import type { ResourceVideoCardProps, ResourceEmailTemplateCardProps, ResourceDocumentCardProps, } from "./types"; export function ResourceVideoCard({ video }: ResourceVideoCardProps) { const [modalOpen, setModalOpen] = useState(false); return ( <> setModalOpen(false)} title={video.title} videoUrl={video.videoUrl} tags={video.tags} attachments={video.attachments} /> ); } /** * @deprecated Batch-send era — the Resource Center no longer manages email * templates. Use the Email Marketing Hub template components instead * (EmailTemplateCard flow in the backoffice hub). Removed at the next major. */ export function ResourceEmailTemplateCard({ template, onClick, }: ResourceEmailTemplateCardProps) { if (template.isAddTemplate) { return ( ); } return (