2026-06-04 15:30:01 -07:00
|
|
|
import { useRecipe, Button, Stack, Text, Flex } from "@chakra-ui/react"
|
2025-07-21 11:33:44 -07:00
|
|
|
import UserAvatarMenu from "./UserAvatarMenu.jsx";
|
2026-06-04 15:30:01 -07:00
|
|
|
import { useNavigate } from "react-router-dom";
|
|
|
|
|
import { NavLink } from "react-router-dom";
|
2025-07-21 11:33:44 -07:00
|
|
|
|
|
|
|
|
//TODO: Dynamically populate per each user
|
|
|
|
|
const user = {
|
2026-01-30 19:11:11 +00:00
|
|
|
name: "venessa kuchenik",
|
|
|
|
|
email: "vkuchenik@contractor.usgs.gov",
|
2025-07-21 11:33:44 -07:00
|
|
|
// avatar: "src\\assets\\user_profile.svg"
|
|
|
|
|
}
|
2025-07-16 15:02:57 -07:00
|
|
|
|
2026-06-04 15:30:01 -07:00
|
|
|
export default function Header() {
|
|
|
|
|
const navigate = useNavigate();
|
2025-07-16 15:02:57 -07:00
|
|
|
const recipe = useRecipe({ key: "header" });
|
|
|
|
|
const styles = recipe();
|
|
|
|
|
|
|
|
|
|
return (
|
2026-06-04 15:30:01 -07:00
|
|
|
<Flex css={styles}>
|
|
|
|
|
<Button as={NavLink} to={"/home"} color="color" variant="plain" textStyle="5xl" fontWeight="bold">
|
|
|
|
|
VDAP
|
|
|
|
|
</Button>
|
2025-07-17 11:03:55 -07:00
|
|
|
<Flex align="center" gap={3} pr={6}>
|
2025-07-30 08:34:07 -07:00
|
|
|
<Stack gap="0" textAlign="center" cursor="default">
|
2025-07-17 11:03:55 -07:00
|
|
|
<Text color="color" fontWeight="bold" textStyle="lg">{user.name}</Text>
|
|
|
|
|
<Text color="fg.muted" textStyle="sm">{user.email}</Text>
|
|
|
|
|
</Stack>
|
2025-07-29 14:47:03 -07:00
|
|
|
<UserAvatarMenu
|
|
|
|
|
name={user.name}
|
|
|
|
|
avatar={user.avatar}
|
|
|
|
|
/>
|
2025-07-17 11:03:55 -07:00
|
|
|
</Flex>
|
2026-06-04 15:30:01 -07:00
|
|
|
</Flex>
|
2025-07-16 15:02:57 -07:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|