import { createSignal, For, onMount, Show } from 'solid-js' import { PageLayout } from '../components/_shared/PageLayout' import { useSession } from '../context/session' import { Shout } from '../graphql/types.gen' import { apiClient } from '../utils/apiClient' import { getPagePath } from '@nanostores/router' import { router } from '../stores/router' export const DraftsPage = () => { const { isAuthenticated, isSessionLoaded, user } = useSession() const [drafts, setDrafts] = createSignal([]) onMount(async () => { const loadedDrafts = await apiClient.getDrafts() setDrafts(loadedDrafts) }) return (
{(draft) => ( )}
) } export const Page = DraftsPage