import * as PhosphorIcons from '@phosphor-icons/react';
/**
 * Get a Phosphor icon component by its kebab-case name
 * 
 * @param iconName - The icon name in kebab-case (e.g., "arrow-right", "github-logo")
 * @returns The Phosphor icon component or null if not found
 * 
 * @example
 * const Icon = getPhosphorIcon('arrow-right')
 * if (Icon) {
 *   return <Icon className="h-5 w-5" weight="bold" />
 * }
 */ export function getPhosphorIcon(iconName) {
    if (!iconName) return null;
    // Convert kebab-case to PascalCase for Phosphor icons
    const pascalCase = iconName.split('-').map((part)=>part.charAt(0).toUpperCase() + part.slice(1)).join('');
    const IconComponent = PhosphorIcons[pascalCase];
    if (typeof IconComponent === 'function') {
        return IconComponent;
    }
    return null;
}
/**
 * Check if a Phosphor icon exists by name
 * 
 * @param iconName - The icon name in kebab-case
 * @returns true if the icon exists
 */ export function hasPhosphorIcon(iconName) {
    return getPhosphorIcon(iconName) !== null;
}
