import classNames from 'classnames'; import { Fragment, type FunctionComponent, type ReactNode } from 'react'; import styles from './Mapping.module.scss'; interface Props { className?: string; description: string; mapping: (ReactNode | ReactNode[])[]; } export const Mapping: FunctionComponent = ({ className, description, mapping }) => (

{description}

{mapping.map((key, index) => (
{Array.isArray(key) ? ( <> {key[0]} + {key[1]} ) : ( key )}
{mapping.length > 1 && index < mapping.length - 1 && /}
))}
);