import * as React from 'react'; interface Props { text: string|null; id?: string; renderText?: (text: string)=> React.ReactNode; } const SettingDescription: React.FC = props => { const renderedText = props.text && props.renderText ? props.renderText(props.text) : props.text; return
{renderedText}
; }; export default SettingDescription;