/*! * Copyright (c) 2024 PLANKA Software GmbH * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md */ import React, { useCallback } from 'react'; import PropTypes from 'prop-types'; import { useTranslation } from 'react-i18next'; import { Button } from 'semantic-ui-react'; import { FilePicker, Popup } from '../../../lib/custom-ui'; import styles from './ImportStep.module.scss'; const ImportStep = React.memo(({ onSelect, onBack }) => { const [t] = useTranslation(); const handleFileSelect = useCallback( (type, file) => { onSelect({ type, file, }); onBack(); }, [onSelect, onBack], ); return ( <> {t('common.importBoard', { context: 'title', })} handleFileSelect('trello', file)}>