23008670f3
CI / Build & Quality Checks (push) Successful in 10m13s
- i18next 23->26 + react-i18next 15->17 - prettier 2->3, reformat all files - replace @fontsource/inter with @fontsource-variable/inter 5, update import path - domhandler 5->6 (aligns with transitive deps) - lint-staged 16->17
20 lines
603 B
TypeScript
20 lines
603 B
TypeScript
import { useMemo } from 'react';
|
|
import { EmojiGroupId } from '../../plugins/emoji';
|
|
|
|
export type IEmojiGroupLabels = Record<EmojiGroupId, string>;
|
|
|
|
export const useEmojiGroupLabels = (): IEmojiGroupLabels =>
|
|
useMemo(
|
|
() => ({
|
|
[EmojiGroupId.People]: 'Smileys & People',
|
|
[EmojiGroupId.Nature]: 'Animals & Nature',
|
|
[EmojiGroupId.Food]: 'Food & Drinks',
|
|
[EmojiGroupId.Activity]: 'Activity',
|
|
[EmojiGroupId.Travel]: 'Travel & Places',
|
|
[EmojiGroupId.Object]: 'Objects',
|
|
[EmojiGroupId.Symbol]: 'Symbols',
|
|
[EmojiGroupId.Flag]: 'Flags',
|
|
}),
|
|
[],
|
|
);
|