import clsx from 'clsx'; import React from 'react'; import { FormattedMessage, defineMessages, useIntl } from 'react-intl'; import { HStack, Icon, IconButton, Text } from 'soapbox/components/ui'; const messages = defineMessages({ title: { id: 'group.upload_banner.title', defaultMessage: 'Upload background picture' }, }); interface IMediaInput { src: string | undefined accept: string onChange: React.ChangeEventHandler onClear?: () => void disabled?: boolean } const HeaderPicker = React.forwardRef(({ src, onChange, onClear, accept, disabled }, ref) => { const intl = useIntl(); const handleClear: React.MouseEventHandler = (e) => { e.stopPropagation(); onClear!(); }; return ( ); }); export default HeaderPicker;