import { createResource, For } from "solid-js"; import type Pages from "../protocol/pages"; import Cards from "../components/cards"; import Card from "../components/card"; async function fetchPages(): Promise { const res = await fetch( `${import.meta.env.QUOT_API_URL}/api/pages?order=updated.desc` ); const data = (await res.json()) as Pages.Response; return data; } export default () => { const [pages] = createResource("pages", fetchPages); return (
{() => ( {(page) => ( )} )}
); };