import { useState, useEffect } from "@wordpress/element"; // Import React for JSX and cloneElement
import { LockOutlined } from "@ant-design/icons";
import { __ } from "@wordpress/i18n";
import apiFetch from "@wordpress/api-fetch";
import { Button, Input, Form, Alert } from "antd";
import { StarIcon } from "lucide-react";
import type { Element } from "@wordpress/element";
type Props = {
modal?: boolean;
refer: string;
icon?: Element;
title?: string;
description?: string;
buttonText?: string;
className?: string;
unlocked?: boolean; // Optional prop to indicate if the feature is unlocked
};
const Premium = ({
modal = false,
refer = "",
icon = (
{description}