'use client'
import React from 'react'
import { DSRRequest } from '@/lib/sdk/dsr/types'
export function ActionButtons({
request,
onVerifyIdentity,
onExtendDeadline,
onComplete,
onReject,
onAssign,
onRejectArt11,
}: {
request: DSRRequest
onVerifyIdentity: () => void
onExtendDeadline: () => void
onComplete: () => void
onReject: () => void
onAssign: () => void
onRejectArt11?: () => void
}) {
const isTerminal = request.status === 'completed' || request.status === 'rejected' || request.status === 'cancelled'
if (isTerminal) {
return (
)
}
return (
{!request.identityVerification.verified && (
<>
{onRejectArt11 && (
)}
>
)}
)
}