@arshiash80/strapi-plugin-iconhub
Version:
Icon picker plugin for Strapi with Iconify integration — search, select, and store icons with raw SVG for high-performance rendering.
14 lines (13 loc) • 485 B
TypeScript
import { type IconSetCollections } from '../libs/iconSetUtils';
type UseIconCollectionsReturn = {
collections: IconSetCollections | null;
isLoading: boolean;
error: string | null;
};
/**
* Hook to fetch and cache Iconify icon set collections.
* Fetches all collections once, caches for 30 minutes, then filters
* client-side by allowedPrefixes if provided.
*/
export declare function useIconCollections(allowedPrefixes?: string[]): UseIconCollectionsReturn;
export {};