import { useState, useMemo } from 'react'; import { useSeoMeta } from '@unhead/react'; import { Input } from '@/components/ui/input'; import { cn } from '@/lib/utils'; import { GLOSSARY, TOTAL_TRICKS, searchTricks, type FlatTrick, } from '@/lib/glossary'; import { BookOpen, Search, X } from 'lucide-react'; import { useTranslation } from '@/contexts/language'; function TrickRow({ trick }: { trick: { name: string; aka?: string[]; desc: string } }) { return (
a.k.a. {trick.aka.join(' ยท ')}
)}{trick.desc}
{t('settingsUi.glossary.subheading', { count: TOTAL_TRICKS })}
{t('settingsUi.glossary.results', { count: searchResults.length, s: searchResults.length === 1 ? '' : 's' })} โ{query}โ
{searchResults.length === 0 ? ({t('settingsUi.glossary.noMatch')}
{t.categoryGlyph} {t.categoryTitle}
{cat.blurb}
{t('settingsUi.glossary.footerBefore')}{' '} {' '} {t('settingsUi.glossary.footerAfter')}