@lobehub/icons
Version:
Popular AI / LLM Model Brand SVG Logo and Icon Collection
24 lines • 660 B
JavaScript
import { useMemo } from 'react';
export var useFillId = function useFillId(namespace) {
var id = "lobe-icons-".concat(namespace.toLowerCase(), "-fill");
return useMemo(function () {
return {
fill: "url(#".concat(id, ")"),
id: id
};
}, [namespace]);
};
export var useFillIds = function useFillIds(namespace, length) {
return useMemo(function () {
var ids = Array.from({
length: length
}, function (_, i) {
var id = "lobe-icons-".concat(namespace.toLowerCase(), "-fill-").concat(i);
return {
fill: "url(#".concat(id, ")"),
id: id
};
});
return ids;
}, [namespace, length]);
};