diff --git a/components/PageHeader.tsx b/components/PageHeader.tsx new file mode 100644 index 0000000..b169feb --- /dev/null +++ b/components/PageHeader.tsx @@ -0,0 +1,23 @@ +import React from "react"; + +export default function PageHeader({ + title, + description, + icon, +}: { + title: string; + description: string; + icon: string; +}) { + return ( +
+ +
+

{title}

+

{description}

+
+
+ ); +} diff --git a/pages/dashboard.tsx b/pages/dashboard.tsx index d12381b..0297941 100644 --- a/pages/dashboard.tsx +++ b/pages/dashboard.tsx @@ -13,6 +13,7 @@ import { toast } from "react-hot-toast"; import { MigrationFormat, MigrationRequest } from "@/types/global"; import DashboardItem from "@/components/DashboardItem"; import NewLinkModal from "@/components/ModalContent/NewLinkModal"; +import PageHeader from "@/components/PageHeader"; export default function Dashboard() { const { collections } = useCollectionStore(); @@ -93,14 +94,7 @@ export default function Dashboard() { return (
-
- -
-

Dashboard

- -

A brief overview of your data

-
-
+