"use client";

import React from "react";
import FigmaCertificateContent from "./FigmaCertificateContent";

type Props = {
  open: boolean;
  onClose: () => void;
};

export default function CertificateModal({ open, onClose }: Props) {
  if (!open) return null;
  return (
    <div className="fixed inset-0 z-50 flex items-center justify-center">
      <div className="absolute inset-0 bg-black/40" onClick={onClose} aria-hidden="true" />
      <div className="relative z-10 shadow-xl">
        <FigmaCertificateContent onClose={onClose} />
      </div>
    </div>
  );
}


