import React from "react"; import { InformationCard } from "@arc-ui/components/InformationCard"; import { TypographyCard } from "@arc-ui/components/TypographyCard"; import { Carousel } from "@arc-ui/components/Carousel"; import { type BentoGridContent } from "../types/types"; import { renderCard } from "./renderCard"; import styles from "../BusinessSegmentSwitcher.module.css"; /** * Renders a responsive carousel containing the bento grid cards for mobile and tablet viewports. */ export const renderBusinessSegmentSwitcherCarousel = ({ content, label, }: { content: BentoGridContent; label: string; }) => { return (
{renderCard(content.card1)}
{renderCard(content.card2)}
{content.card3 && (
)}
); };