'use client' import type { EventRevision } from '@/services/events' import Button from '@/components/formElements/Button' import { Card, CardBody } from '@/components/heroui/Card' import { texts } from '@/texts' interface AdminEventPendingRevisionCardProps { pendingId: string | null revision: EventRevision onApprove: () => void onReject: () => void } const AdminEventPendingRevisionCard = ({ pendingId, revision, onApprove, onReject }: AdminEventPendingRevisionCardProps) => { const { title, slug } = revision.payload return (

{texts.events.revisionPendingCardTitle}

ارسال‌شده: {new Date(revision.submittedAt).toLocaleString('fa-IR')}

{title != null && title !== '' ? (
عنوان پیشنهادی
{String(title)}
) : null} {slug != null && slug !== '' ? (
اسلاگ پیشنهادی
{String(slug)}
) : null}
) } export default AdminEventPendingRevisionCard