'use client'
import {
  AlertDialog,
  AlertDialogAction,
  AlertDialogCancel,
  AlertDialogContent,
  AlertDialogDescription,
  AlertDialogFooter,
  AlertDialogHeader,
  AlertDialogTitle,
} from '@/components/ui/alert-dialog'
import { useCreateAI, useCreateDict, useCreateFormStorage } from '@/hooks/create'
import { CreateOrEditAiRequest } from '@/services/create'
import Image from 'next/image'
import { useRouter } from 'next/navigation'

const CopyrightRuleModal = ({
  isOpen,
  onOpenChange,
  onConfirm,
}: {
  isOpen: boolean
  onOpenChange: (open: boolean) => void
  onConfirm: () => void
}) => {
  return (
    <AlertDialog open={isOpen} onOpenChange={onOpenChange}>
      <AlertDialogContent className="w-[480px]">
        <AlertDialogHeader>
          <AlertDialogTitle className="hidden" />
          <Image
            src="/icons/copyright-rule.svg"
            alt="Copyright Rule"
            width={144}
            height={144}
            className="mx-auto"
          />
        </AlertDialogHeader>
        <AlertDialogDescription className="text-center">
          <p>
            Please confirm that this virtual character is your original or fan-made creation, and
            does not infringe on anyone else's images, IP, or other rights.
          </p>
        </AlertDialogDescription>
        <AlertDialogFooter>
          <AlertDialogCancel className="flex-1">Cancel</AlertDialogCancel>
          <AlertDialogAction className="flex-1" onClick={onConfirm}>
            Confirm
          </AlertDialogAction>
        </AlertDialogFooter>
      </AlertDialogContent>
    </AlertDialog>
  )
}

export default CopyrightRuleModal
