import { FC } from 'react' import { useTranslation } from 'react-i18next' import UploadBoxDraggble from '../../../components/UploadBoxDraggble' type Props = { onChangeVideoFile: (file: File) => void, onChangeCoverFile: (file: File) => void } const CreateLearningSidebar: FC = (props: Props) => { const { t } = useTranslation('global') return (
{t('learning.learning_cover')}
props.onChangeCoverFile(file[0])} />
{t('learning.video')}
props.onChangeVideoFile(file[0])} isFile />
) } export default CreateLearningSidebar