import { ExpandableWidget, List } from '@components/WidgetParts'; import { t } from '@lingui/macro'; import { SubjectPreview } from '@ts/types/taxonomies'; import Link from 'next/link'; const RelatedTopics = ({ topics }: { topics: SubjectPreview[] }) => { const sortedSubjects = [...topics].sort((a, b) => a.title.localeCompare(b.title) ); const subjects = sortedSubjects.map((subject) => { return (