import React from 'react';
import { __ } from '@wordpress/i18n';
import { Lock, Key } from 'lucide-react';
const PILL_CLASS = 'inline-flex items-center gap-[3px] shrink-0 text-xs leading-4 font-bold px-[7px] py-px rounded-full bg-thumbpress-pro-yellow !text-thumbpress-title no-underline';
/**
* The "PRO" tag. A link to the Pro page by default, tagged with where it was clicked, so a purchase
* can be traced back to the surface that sent the buyer. Inside another link it must be plain text
* (`link={ false }`): links do not nest, and the row around it already goes somewhere.
*/
export default function ProPill({ src, lock = true, link = true }: { src: string; lock?: boolean; link?: boolean }) {
const isProActive = window.THUMBPRESS?.pro_active;
const isProInstalled = window.THUMBPRESS?.pro_installed;
const inner = (
<>
{ isProInstalled ? : }
{ isProInstalled ? __( 'Activate', 'image-sizes' ) : __( 'PRO', 'image-sizes' ) }
>
);
if ( ! link ) {
return { inner };
}
return (
{ inner }
);
}