import React from "react";
import { Box, Heading, Text, VStack } from "@chakra-ui/react";
const ServicesOverview = ({ servicesOverview }) => (
{servicesOverview}
);
const Offerings = ({ offerings }) => (
{offerings.map((service, index) => (
{service.title}
{service.description}
))}
);
const ServicesSectionContent = ({ activeSection, data }) => {
const components = {
servicesOverview: ServicesOverview,
offerings: Offerings,
};
const ActiveComponent = components[activeSection];
return (
{ActiveComponent ? (
) : (
Select a section to view details.
)}
);
};
export default ServicesSectionContent;