import React from 'react' ; import { DefaultComponent , ParameterClasses , ParameterProps , useCustomRendering , } from '../customise' ; import defaultStyles from './Parameter.module.scss' ; const DefaultRenderer = ( { parameterTypeName , children , styles , } ) => { return ( < span title = { parameterTypeName } className = { styles . parameter } > { children } < /span>); } ; export const Parameter = ( props ) => { const ResolvedRenderer = useCustomRendering < ParameterProps , ParameterClasses > ( 'Parameter' , defaultStyles , DefaultRenderer ) ; return < ResolvedRenderer { ... props } / > ; } ;