mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00

Update README deployment steps and add deploy:secrets script to package.json update local inference script and README update lockfile reconfigure package scripts for development update test execution pass server tests Update README with revised Bun commands and workspace details remove pnpm package manager designator create bun server
33 lines
747 B
TypeScript
33 lines
747 B
TypeScript
import React from "react";
|
|
import { Button } from "@chakra-ui/react";
|
|
import { ChevronRight } from "lucide-react";
|
|
|
|
function SectionButton(props: {
|
|
onClick: () => void;
|
|
activeSection: string;
|
|
section: string;
|
|
mobile: boolean;
|
|
callbackfn: (word) => string;
|
|
}) {
|
|
return (
|
|
<Button
|
|
mt={1}
|
|
onClick={props.onClick}
|
|
variant={props.activeSection === props.section ? "solid" : "outline"}
|
|
colorScheme="brand"
|
|
rightIcon={<ChevronRight size={16} />}
|
|
size="md"
|
|
width={props.mobile ? "100%" : "auto"}
|
|
>
|
|
{props.section
|
|
.replace(/([A-Z])/g, " $1")
|
|
.trim()
|
|
.split(" ")
|
|
.map(props.callbackfn)
|
|
.join(" ")}
|
|
</Button>
|
|
);
|
|
}
|
|
|
|
export default SectionButton;
|