import React, { useMemo } from 'react';
import { fluentLibraryIcons } from '../assets/unityIcons/LibraryData';
export const useFluentIcon = (iconName) => {
    const icon = useMemo(() => {
        if (!iconName || iconName === 'none') {
            return null;
        }
        const result = fluentLibraryIcons.find((item) => item.id.toLowerCase().includes(iconName.toLowerCase()));
        return (result === null || result === void 0 ? void 0 : result.icon) || null;
    }, [iconName]);
    return {
        icon
    };
};
//# sourceMappingURL=useFluentIcon.js.map