diff --git a/src/pages/resources/index.tsx b/src/pages/resources/index.tsx index 87a1f4c..6779419 100644 --- a/src/pages/resources/index.tsx +++ b/src/pages/resources/index.tsx @@ -1,5 +1,5 @@ import { LinkIcon } from "@heroicons/react/20/solid"; -import { PrinterIcon } from "@heroicons/react/24/solid"; +import { PrinterIcon, PlusCircleIcon } from "@heroicons/react/24/solid"; import Link from "next/link"; import { useRouter } from "next/router"; import ResourceTable from "~/components/ResourceTable"; @@ -8,6 +8,42 @@ import { parseQueryData } from "~/utils/parseSearchForm"; import { HeaderFooterLayout } from "~/layouts/HeaderFooterLayout"; import { type AuditoryResource } from "@prisma/client"; import { QueryWaitWrapper } from "~/components/LoadingWrapper"; +import { AdminBarLayout } from "~/components/admin/ControlBar"; +import { AdminActionLink } from "~/components/admin/common"; + +const PageHeader = ({ printLink }: { printLink: string }) => { + return ( +
+
+

All Resources

+
+

Fill out the

+ + search form + + +

+ {" "} + for a list of auditory training resource recommendations. +

+
+
+ +
+ + Print Results + + +
+
+ ); +}; const Resources = () => { const router = useRouter(); @@ -49,39 +85,22 @@ const Resources = () => { return ( -
-
-
-

All Resources

-
-

Fill out the

- - search form - - -

- {" "} - for a list of auditory training resource recommendations. -

-
-
+ } + label="Create New" + href={`/resources/create`} + />, + ]} + > +
+ -
- - Print Results - - -
+
- - -
+ ); };