Add CanvasHeader along with sub components CanvasHeaderNav, SearchBar, SettingsButton
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { HStack, Link } from "@chakra-ui/react"
|
||||
|
||||
const navItems = [
|
||||
{ label: "My Dashboard", href: "#dashboard" },
|
||||
{ label: "Gas", href: "gas" },
|
||||
{ label: "Seismic", href: "#seismic" },
|
||||
{ label: "Remote Sensing", href: "#remote" },
|
||||
{ label: "Daily Activity", href: "#daily" },
|
||||
];
|
||||
|
||||
export function CanvasHeaderNav() {
|
||||
return (
|
||||
<HStack as="nav" spacing={6}>
|
||||
{navItems.map(({ label, href }) => (
|
||||
<Link key={href} href={href} fontWeight="medium">
|
||||
{label}
|
||||
</Link>
|
||||
))}
|
||||
</HStack>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user