import 'swiper/css' import type { LucideIcon } from 'lucide-react' import Image from 'next/image' import Link from 'next/link' import React, { type FC, type ReactNode } from 'react' import { Swiper, SwiperSlide } from 'swiper/react' import { TextLink } from 'ui-patterns/TextLink' import SectionContainer from '@/components/Layouts/SectionContainer' import Panel from '@/components/Panel' interface Props { id: string label?: ReactNode heading?: ReactNode stories?: Story[] highlights?: Highlight[] } export type Story = { icon?: string url: string target?: '_blank' | string heading?: string subheading?: ReactNode } type Highlight = { icon?: LucideIcon heading: string subheading: string url: string } const UseCases: FC = (props) => (
{props.label}

{props.heading}

    {props.stories?.map((story) => (
  • ))}
{props.stories?.map((story: Story, i: number) => ( ))}
    {props.highlights?.map((highlight) => ( ))}
) interface StoryCardProps { story: Story } const StoryCard: FC = ({ story }) => (
{story.icon && ( {story.heading )}

{story.heading}

{story.subheading}
) interface HighlightCardProps { highlight: Highlight } const HighlightCard: FC = ({ highlight }) => { const Icon: LucideIcon | undefined = highlight.icon return (
  • {Icon && }

    {highlight.heading}

    {highlight.subheading}

  • ) } export default UseCases