| Server IP : 72.60.21.38 / Your IP : 216.73.216.137 Web Server : LiteSpeed System : Linux uk-fast-web1372.main-hosting.eu 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64 User : u390967363 ( 390967363) PHP Version : 8.2.30 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/u390967363/domains/aibenproperties.com/public_html/app/ui/src/components/ |
Upload File : |
import React from 'react';
import './LicenseBanner.css';
export const LicenseBanner: React.FC<{state:'active'|'grace'|'restricted'|'suspended'}> = ({ state }) => {
const map = {
active: { text: 'License: Active', desc: 'Expires in 203 days', btn: 'Manage License', class: 'active' },
grace: { text: 'License: Grace Period', desc: 'Auto-limits apply. Expires in 6 days', btn: 'Renew Now', class: 'grace' },
restricted: { text: 'License: Restricted', desc: 'Allocation creation disabled', btn: 'Contact Sales', class: 'restricted' },
suspended: { text: 'License: Suspended', desc: 'Platform access limited', btn: 'Resolve', class: 'suspended' },
} as const;
const s = map[state];
return (
<div className={`rp-license rp-license--${s.class}`} role="status">
<div className="rp-license__left"><strong>{s.text}</strong><div className="muted">{s.desc}</div></div>
<div className="rp-license__right"><button className="rp-btn rp-btn--small">{s.btn}</button></div>
</div>
);
};
export default LicenseBanner;