import { ExternalLink } from 'lucide-react' import Link from 'next/link' import { PropsWithChildren } from 'react' import { Badge } from 'ui' import { CategoryAttribute } from './Usage.constants' import { ScaffoldContainer, ScaffoldDivider } from '@/components/layouts/Scaffold' export interface SectionContent { section: Pick includedInPlan?: boolean } export const SectionContent = ({ section, includedInPlan, children, }: PropsWithChildren) => { const { name, description, links } = section return ( <>

{name}

{includedInPlan === false && Not included}
{description.split('\n').map((value, idx) => (

{value}

))}
{links && links.length > 0 && (

More information

{links.map((link) => (

{link.name}

))}
)}
{children}
) }