import type { BlitzPage } from "blitz"; import { useQuery } from "blitz"; import getMetrics from "../queries/get-metrics"; import Layout from "../components/layout"; const initialData = { users: 0, phoneNumbers: 0, smsExchanged: 0, minutesCalled: 0, averageMinutesCalled: 0, }; const OpenMetrics: BlitzPage = () => { const [metrics] = useQuery(getMetrics, {}, { suspense: false, initialData }); const { users, phoneNumbers, smsExchanged, minutesCalled, averageMinutesCalled } = metrics ?? initialData; return (