{/* Example Button (ExampleButton.tsx in components folder) */}
-
+
{/* */}
);
diff --git a/src/components/TopHeader.tsx b/src/components/TopHeader.tsx
index 53fcc9c..09ceb52 100644
--- a/src/components/TopHeader.tsx
+++ b/src/components/TopHeader.tsx
@@ -1,21 +1,29 @@
import { Icon } from "@iconify/react/dist/iconify.js";
-// interface TopHeaderProps {
-// buttonText: string;
-// }
+interface TopHeaderProps {
+ userType: string;
+}
-// TODO: create a div section for the profile on the right
-// use a placeholder icon for the profile picture
-// style the header so that the button and profile are on opposite ends of the
-// header (you can use space-between)
-
-const TopHeader = () => {
+const TopHeader = ({ userType }: TopHeaderProps) => {
+ // different button text and icon depending on if the user is a volunteer or admin
+ const buttonText = userType === "admin" ? "Create new event" : "Check in";
+ const icon = userType === "admin" ? "ic:baseline-plus" : "mdi:checkbox-outline";
return (
-