27 lines
637 B
TypeScript
27 lines
637 B
TypeScript
import { type NextPage } from "next";
|
|
import Head from "next/head";
|
|
import ResourceTable from "~/components/ResourceTable";
|
|
import { api } from "~/utils/api";
|
|
|
|
const Home: NextPage = () => {
|
|
|
|
const query = api.auditoryResource.getAll.useQuery();
|
|
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>ATR</title>
|
|
<meta name="description" content="University of Iowa Center for Auditory Training Resources" />
|
|
<link rel="icon" href="/favicon.ico" />
|
|
</Head>
|
|
<main>
|
|
<div className="my-6">
|
|
<ResourceTable resources={query.data} />
|
|
</div>
|
|
</main>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default Home;
|