import type { LicenseCheckStatus } from '@yaakapp-internal/license'; import { useLicense } from '@yaakapp-internal/license'; import { useOpenSettings } from '../hooks/useOpenSettings'; import { Button } from './core/Button'; import { SettingsTab } from './Settings/Settings'; const labels: Record = { commercial_use: null, personal_use: 'Personal Use', trial_ended: 'Personal Use', trialing: 'Active Trial', }; export function LicenseBadge() { const openSettings = useOpenSettings(); const { check } = useLicense(); if (check.data == null) { return null; } const label = labels[check.data.type]; if (label == null) { return null; } return ( ); }