matcher.jsimport {
Icon,
forwardPartialFuzzyMatcher,
uniqueIcons,
} from '/api/code/customize/icon-suggestion/script.js';
// joke
export function babyMatcher(options) {
return uniqueIcons([
new Icon('mizdra', '赤ちゃん'),
...forwardPartialFuzzyMatcher(options),
]);
}
script.jsimport {
Icon,
registerIconSuggestion,
fetchMemberPageIcons,
} from '/api/code/customize/icon-suggestion/script.js';
import { babyMatcher } from '/api/code/customize/mizdra/matcher.js';
registerIconSuggestion({
presetIcons: [
new Icon('icons', 'done'),
new Icon('icons', 'check'),
fetchMemberPageIcons('customize'),
],
matcher: babyMatcher,
});