import React, {ReactNode} from 'react'; import Heading from '../global/Heading'; export interface SettingValueProps { key: string; heading?: string; value: ReactNode; hint?: ReactNode; hideEmptyValue?: boolean; } const SettingValue: React.FC = ({heading, value, hint, hideEmptyValue, ...props}) => { if (!value && hideEmptyValue) { return <>; } return (
{heading && {heading}}
{value}
{hint &&

{hint}

}
); }; export default SettingValue;