import { Center } from "~/components/Center"; import type { App } from "bknd"; import { useEntityQuery } from "bknd/client"; export default function IndexPage({ app }: { app: App }) { const user = app.getApi().getUser(); const limit = 5; const { data: todos, ...$q } = useEntityQuery("todos", undefined, { limit, }); // @ts-ignore const total = todos?.body.meta.total || 0; return (
local
What's next? ({total})
Authenticated as {user.email}
) : ( Login )}