import React from 'react' ; import { EuiSpacer , EuiText } from '@elastic/eui' ; interface Props { label : string ; description : string ; } export const RoleOptionLabel = ( { label , description } ) => ( < > < EuiText size = "s" > { label . charAt ( 0 ) . toUpperCase ( ) + label . toLowerCase ( ) . slice ( 1 ) } < /EuiText> < EuiSpacer size = "xs" / > < EuiText size = "xs" > < p > { description } < /p> < /EuiText> < EuiSpacer size = "s" / > < />);