import classNames from 'classnames' import { useRef } from 'preact/hooks' import ignoreEvent from '../utils/ignoreEvent.js' type $TSFixMe = any function PickerPanelContent({ activePickerPanel, className, hideAllPanels, i18n, state, uppy, }: $TSFixMe) { const ref = useRef(null) return (
{i18n('importFrom', { name: activePickerPanel.name })}
{uppy.getPlugin(activePickerPanel.id).render(state, ref.current)}
) } export default PickerPanelContent