import { LicenseInfo } from '@mui/x-license';

const PERPETUAL_LICENSE_KEY =
  'e0d9bb8070ce0054c9d9ecb6e82cb58fTz0wLEU9MzI0NzIxNDQwMDAwMDAsUz1wcmVtaXVtLExNPXBlcnBldHVhbCxLVj0y';
const ALTERNATIVE_LICENSE_KEY =
  '61628ce74db2c1b62783a6d438593bc5Tz1NVUktRG9jLEU9MTY4MzQ0NzgyMTI4NCxTPXByZW1pdW0sTE09c3Vic2NyaXB0aW9uLEtWPTI=';

try {
  LicenseInfo.setLicenseKey(PERPETUAL_LICENSE_KEY);
} catch (error) {
  console.warn('Failed to set perpetual license key', error);
  try {
    LicenseInfo.setLicenseKey(ALTERNATIVE_LICENSE_KEY);
  } catch (fallbackError) {
    console.error('Failed to set fallback license key', fallbackError);
  }
}
