import 'swiper/css' import React, { FC } from 'react' import { Swiper, SwiperSlide } from 'swiper/react' import Link from 'next/link' import { TextLink } from 'ui' import SectionContainer from '~/components/Layouts/SectionContainer' import Panel from '~/components/Panel' import type { LucideIcon } from 'lucide-react' import Image from 'next/image' interface Props { id: string label: string | JSX.Element heading: string | JSX.Element stories: Story[] highlights: Highlight[] } export type Story = { icon: string url: string target?: '_blank' | string heading: string subheading: string | JSX.Element } 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.heading}

{story.heading}

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

    {highlight.subheading}

  • ) } export default UseCases