webapp/src/pages/allTopics.page.tsx

18 lines
521 B
TypeScript
Raw Normal View History

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'
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 = () => {
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 (
<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