import { createMemo, For, Show } from 'solid-js' import type { Topic } from '../../graphql/types.gen' import { Icon } from '../_shared/Icon' import './Topics.scss' import { useLocalize } from '../../context/localize' export const NavTopics = (props: { topics: Topic[] }) => { const { t, lang } = useLocalize() const tag = (topic: Topic) => /[ЁА-яё]/.test(topic.title || '') && lang() !== 'ru' ? topic.slug : topic.title // TODO: something about subtopics return ( ) }