import { ExpandableWidget, List } from '@components/WidgetParts'; import { TopicPreview } from '@ts/types/taxonomies'; import Link from 'next/link'; import { useIntl } from 'react-intl'; const RelatedTopics = ({ topics }: { topics: TopicPreview[] }) => { const intl = useIntl(); const sortedTopics = [...topics].sort((a, b) => a.title.localeCompare(b.title) ); const topicsList = sortedTopics.map((topic) => { return (
  • {topic.title}
  • ); }); return ( ); }; export default RelatedTopics;