import React from 'react'; import { useIntl, defineMessages } from 'react-intl'; import { HStack, Input } from 'soapbox/components/ui'; import { StreamfieldComponent } from 'soapbox/components/ui/streamfield/streamfield'; import type { CryptoAddress } from 'soapbox/types/soapbox'; const messages = defineMessages({ ticker: { id: 'soapbox_config.crypto_address.meta_fields.ticker_placeholder', defaultMessage: 'Ticker' }, address: { id: 'soapbox_config.crypto_address.meta_fields.address_placeholder', defaultMessage: 'Address' }, note: { id: 'soapbox_config.crypto_address.meta_fields.note_placeholder', defaultMessage: 'Note (optional)' }, }); const CryptoAddressInput: StreamfieldComponent = ({ value, onChange }) => { const intl = useIntl(); const handleChange = (key: 'ticker' | 'address' | 'note'): React.ChangeEventHandler => { return e => { onChange(value.set(key, e.currentTarget.value)); }; }; return ( ); }; export default CryptoAddressInput;