This commit is contained in:
2025-10-31 16:06:03 -04:00
commit ff334a7f0d
42 changed files with 15172 additions and 0 deletions

32
src/app/page.tsx Normal file
View File

@@ -0,0 +1,32 @@
"use client";
import GetTotalGroupsQuery from "@/graphql/queries/getTotalGroups";
import { Heading, Skeleton, Text } from "@chakra-ui/react";
import { Icon } from "@iconify/react";
import { useQuery } from "@urql/next";
import { Fragment } from "react/jsx-runtime";
export default function Home() {
const [{ fetching, data, error }] = useQuery({ query: GetTotalGroupsQuery });
return (
<Fragment>
<Heading>{`Total number of groups the bot has helped`}</Heading>
<Skeleton loading={fetching} width="2rem">
<Text fontSize="2xl">
{error || !data || !data.getTotalGroups ? (
<Icon
color="yellow"
icon="solar:danger-triangle-broken"
width="24"
height="24"
/>
) : (
`${data.getTotalGroups}`
)}
</Text>
</Skeleton>
</Fragment>
);
}