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