import React from 'react'; import { useIntl, defineMessages } from 'react-intl'; import { HStack, Input } from 'soapbox/components/ui'; import type { StreamfieldComponent } from 'soapbox/components/ui/streamfield/streamfield'; import type { FooterItem } from 'soapbox/types/soapbox'; const messages = defineMessages({ label: { id: 'soapbox_config.home_footer.meta_fields.label_placeholder', defaultMessage: 'Label' }, url: { id: 'soapbox_config.home_footer.meta_fields.url_placeholder', defaultMessage: 'URL' }, }); const PromoPanelInput: StreamfieldComponent = ({ value, onChange }) => { const intl = useIntl(); const handleChange = (key: 'title' | 'url'): React.ChangeEventHandler => { return e => { onChange(value.set(key, e.currentTarget.value)); }; }; return ( ); }; export default PromoPanelInput;