import { useSelector } from 'react-redux'; import { Box } from '@suite-native/atoms'; import { EditableLabelLayout, LabelEditForm, selectIsLabellingAllowed, } from '@suite-native/labeling'; type SendFormLabelEditableProps = { label: string | null; onLabelChange: (label: string) => void; }; export const SendFormLabelEditable = ({ onLabelChange, label }: SendFormLabelEditableProps) => { const isLabellingAllowed = useSelector(selectIsLabellingAllowed); if (!isLabellingAllowed) return null; return ( {({ onClose }) => ( { onLabelChange(newLabel); onClose(); }} /> )} ); };