import { MainLayout } from '../Layouts/MainLayout' import { AllAuthorsView } from '../Views/AllAuthors' import type { PageProps } from '../types' import { createSignal, onMount, Show } from 'solid-js' import { loadAllAuthors } from '../../stores/zine/authors' import { t } from '../../utils/intl' export const AllAuthorsPage = (props: PageProps) => { const [isLoaded, setIsLoaded] = createSignal(Boolean(props.allAuthors)) onMount(async () => { if (isLoaded()) { return } await loadAllAuthors() setIsLoaded(true) }) return ( ) } // for lazy loading export default AllAuthorsPage