Files
open-gsio/src/layout/NavItem.tsx
geoffsee fe51876e89 Remove commented-out code and update configurations
Deleted unused or commented-out code across multiple files to improve clarity and maintainability. Updated `kv_namespaces` in `wrangler.toml` and specified the package manager in `package.json`. Add placeholder values for development kv stores.
2025-05-23 14:36:35 -04:00

43 lines
906 B
TypeScript

import { Box } from "@chakra-ui/react";
import React from "react";
function NavItem({ path, children, color, onClick, as, cursor }) {
return (
<Box
as={as ?? "a"}
href={path}
mb={2}
cursor={cursor}
mr={2}
color={color ?? "text.accent"}
letterSpacing="normal"
display="block"
position="relative"
textAlign="right"
onClick={onClick}
_after={{
content: '""',
position: "absolute",
width: "100%",
height: "2px",
bottom: "0",
left: "0",
bg: "accent.secondary",
transform: "scaleX(0)",
transformOrigin: "right",
transition: "transform 0.3s ease-in-out",
}}
_hover={{
color: "tertiary.tertiary",
_after: {
transform: "scaleX(1)",
},
}}
>
{children}
</Box>
);
}
export default NavItem;