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
41 lines
988 B
TypeScript
41 lines
988 B
TypeScript
import React from "react";
|
|
import { Box, Heading, Text, VStack } from "@chakra-ui/react";
|
|
|
|
const ServicesOverview = ({ servicesOverview }) => (
|
|
<Text fontSize="md">{servicesOverview}</Text>
|
|
);
|
|
|
|
const Offerings = ({ offerings }) => (
|
|
<VStack align="start" spacing={6} mb={4}>
|
|
{offerings.map((service, index) => (
|
|
<Box key={index}>
|
|
<Heading as="h3" size="md" mb={2}>
|
|
{service.title}
|
|
</Heading>
|
|
<Text mb={4}>{service.description}</Text>
|
|
</Box>
|
|
))}
|
|
</VStack>
|
|
);
|
|
|
|
const ServicesSectionContent = ({ activeSection, data }) => {
|
|
const components = {
|
|
servicesOverview: ServicesOverview,
|
|
offerings: Offerings,
|
|
};
|
|
|
|
const ActiveComponent = components[activeSection];
|
|
|
|
return (
|
|
<Box p={4} minHeight="300px" width="100%">
|
|
{ActiveComponent ? (
|
|
<ActiveComponent {...data} />
|
|
) : (
|
|
<Text>Select a section to view details.</Text>
|
|
)}
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default ServicesSectionContent;
|