2024-02-08 09:11:52 +00:00
|
|
|
import { AllTopics } from '../components/Views/AllTopics'
|
2024-02-04 11:25:21 +00:00
|
|
|
import { PageLayout } from '../components/_shared/PageLayout'
|
2023-11-14 10:45:44 +00:00
|
|
|
import { useLocalize } from '../context/localize'
|
2024-05-06 23:44:25 +00:00
|
|
|
import { useTopics } from '../context/topics'
|
2022-09-22 09:37:49 +00:00
|
|
|
|
2024-05-06 23:44:25 +00:00
|
|
|
export const AllTopicsPage = () => {
|
2023-11-14 10:45:44 +00:00
|
|
|
const { t } = useLocalize()
|
2024-05-06 23:44:25 +00:00
|
|
|
const { sortedTopics } = useTopics()
|
2022-11-15 09:38:12 +00:00
|
|
|
|
2022-09-22 09:37:49 +00:00
|
|
|
return (
|
2023-12-13 10:39:31 +00:00
|
|
|
<PageLayout title={t('Themes and plots')}>
|
2024-05-06 23:44:25 +00:00
|
|
|
<AllTopics isLoaded={!!sortedTopics()?.length} topics={sortedTopics()} />
|
2023-02-17 09:21:02 +00:00
|
|
|
</PageLayout>
|
2022-09-22 09:37:49 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2023-02-17 09:21:02 +00:00
|
|
|
export const Page = AllTopicsPage
|