20 lines
619 B
React
Raw Normal View History

import classNames from "classnames";
import ErrorBoundary from "components/errorboundry";
2022-08-24 10:44:35 +03:00
import List from "components/services/list";
export default function ServicesGroup({ services, layout }) {
2022-08-24 10:44:35 +03:00
return (
<div
key={services.name}
className={classNames(
layout?.style === "row" ? "basis-full" : "basis-full md:basis-1/2 lg:basis-1/3 xl:basis-1/4",
"flex-1 p-1"
)}
2022-08-24 10:44:35 +03:00
>
<h2 className="text-theme-800 dark:text-theme-300 text-xl font-medium">{services.name}</h2>
<ErrorBoundary><List services={services.services} layout={layout} /></ErrorBoundary>
2022-08-24 10:44:35 +03:00
</div>
);
}