import Svg from 'src/components/Svg/Svg' interface EditToggleType { hasPermissionToEdit: boolean onEdit?: React.MouseEventHandler isEditing?: boolean } const EditToggle = ({ onEdit = () => { console.error('Field declared editable without edit action.') }, isEditing = false, } : EditToggleType) => ( (isEditing ? ( ) : ( )) ) interface KeyValueType { keyName: string children: React.ReactNode bottom?: boolean className?: string edit?: EditToggleType } const KeyValue = ({ keyName, children, bottom = false, className = '', edit = { hasPermissionToEdit: false }, }: KeyValueType) => { if (!children) return null return (