import { useAnalytics } from '@/angulartics.matomo/analytics-services'; import { HubspotForm } from '@@/HubspotForm'; import { Modal } from '@@/modals/Modal'; export function GetLicenseDialog({ onDismiss, goToUploadLicense, }: { onDismiss: () => void; goToUploadLicense: (isSubmitted: boolean) => void; }) { // form is loaded from hubspot, so it won't have the same styling as the rest of the app // since it won't support darkmode, we enforce a white background and black text for the components we use // (Modal, CloseButton, loading text) const { trackEvent } = useAnalytics(); return (
{ trackEvent('portainer-upgrade-license-key-requested', { category: 'portainer', metadata: { 'Upgrade-key-requested': true }, }); goToUploadLicense(true); }} loading={
Loading...
} />
); }