2025-07-17 15:35:01 -07:00
|
|
|
import { chakra, useRecipe, Box, Button, Stack, Text, Flex } from "@chakra-ui/react"
|
2025-07-21 11:33:44 -07:00
|
|
|
import UserAvatarMenu from "./UserAvatarMenu.jsx";
|
|
|
|
|
|
|
|
|
|
//TODO: Dynamically populate per each user
|
|
|
|
|
const user = {
|
|
|
|
|
name: "venessa kuchenik",
|
|
|
|
|
email: "vkuchenik@contractor.usgs.gov",
|
|
|
|
|
// avatar: "src\\assets\\user_profile.svg"
|
|
|
|
|
}
|
2025-07-16 15:02:57 -07:00
|
|
|
|
|
|
|
|
export default function Header() {
|
|
|
|
|
const recipe = useRecipe({ key: "header" });
|
|
|
|
|
const styles = recipe();
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<chakra.div css={styles}>
|
|
|
|
|
<Button 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-22 09:26:40 -07:00
|
|
|
<Stack gap="0" textAlign="right" 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-17 15:35:01 -07:00
|
|
|
<UserAvatarMenu name={user.name} avatar={user.avatar} />
|
2025-07-17 11:03:55 -07:00
|
|
|
</Flex>
|
2025-07-16 15:02:57 -07:00
|
|
|
</chakra.div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|