import React from 'react' import Link from 'next/link' import SectionContainer from '../Layouts/SectionContainer' import APISection, { type APIExample } from '../Sections/APISection' import { cn } from 'ui' import { useBreakpoint } from 'common' import type { FrameworkLinkProps } from 'data/solutions/solutions.utils' export interface MPCSectionProps { id: string heading: string | React.ReactNode subheading?: string documentationLink: string ctaLabel?: string frameworks: FrameworkLinkProps[] apiExamples: APIExample[] } const MPCSection = ({ id, heading, subheading, ctaLabel, documentationLink, frameworks, apiExamples, }: MPCSectionProps) => { return ( {subheading}

]} footer={[
{frameworks?.map((framework) => ( ))}
, ]} documentation_link={documentationLink} ctaLabel={ctaLabel} />
) } const FrameworkLink = ({ framework, className, }: { framework: FrameworkLinkProps className?: string }) => { const isXs = useBreakpoint(640) return (
{typeof framework.icon === 'string' ? ( ) : ( framework.icon )}
{framework.name} ) } export default MPCSection