import { useState, HTMLAttributes } from "react"; import dayjs from "dayjs"; import Button from "../../common/component/styled/Button"; import useLicense from "../../common/hook/useLicense"; import LicensePriceListModal from "./LicensePriceListModal"; import clsx from "clsx"; interface ItemProps extends HTMLAttributes { label: string, data?: string | number | string[], foldable?: boolean } const Item = ({ label, data, foldable = false, ...rest }: ItemProps) => { const infoClass = clsx("font-bold w-full cursor-pointer", foldable ? " overflow-hidden text-ellipsis" : "whitespace-pre-wrap break-all"); if (!data) return null; return
{label} {Array.isArray(data) ? : {data} }
; }; export default function License() { const { license: licenseInfo, reachLimit } = useLicense(); const [modalVisible, setModalVisible] = useState(false); const [base58Fold, setBase58Fold] = useState(true); const handleRenewLicense = () => { toggleModalVisible(); }; const toggleModalVisible = () => { setModalVisible((prev) => !prev); }; const handleLicenseValueToggle = () => { setBase58Fold(pre => !pre); }; return ( <>

A chance to get a free license upgrade! 🎁

Getting a free license upgrade by joining our User Test Session Book a time here: https://calendly.com/hansu/han-meeting Or, add WeChat for more information: yanggc_2013

{modalVisible && ( )} ); }