import clsx from 'clsx'; import * as React from 'react'; import { ClassNames } from '../../DomUtils/classNames'; import { CategoryConfig, categoryFromCategoryConfig, categoryNameFromCategoryConfig } from '../../config/categoryConfig'; import './EmojiCategory.css'; type Props = Readonly<{ categoryConfig: CategoryConfig; children?: React.ReactNode; hidden?: boolean; hiddenOnSearch?: boolean; }>; export function EmojiCategory({ categoryConfig, children, hidden, hiddenOnSearch }: Props) { const category = categoryFromCategoryConfig(categoryConfig); const categoryName = categoryNameFromCategoryConfig(categoryConfig); return (
  • {categoryName}
    {children}
  • ); }