Files
negareh-admin/src/pages/learning/components/CreateLearningSidebar.tsx
T
hamid zarghami 5acfad3e2e learning
2025-11-01 11:55:02 +03:30

40 lines
1.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { type FC } from 'react'
// import { useTranslation } from 'react-i18next'
import UploadBox from '../../../components/UploadBox'
type Props = {
onChangeVideoFile: (file: File) => void,
onChangeCoverFile: (file: File) => void
}
const CreateLearningSidebar: FC<Props> = (props: Props) => {
// const { t } = useTranslation('global')
const t = (key: string) => key; // Mock translation function
return (
<div className='bg-white mt-10 w-sidebar text-xs hidden 2xl:block h-fit px-5 py-7 rounded-3xl'>
<div className='mt-8'>
<div>کاور آموزش</div>
<div className='mt-2'>
<UploadBox
label='آپلود کاور'
onChange={(file: File[]) => props.onChangeCoverFile(file[0])}
/>
</div>
</div>
<div className='mt-8'>
<div>ویدیو</div>
<div className='mt-2'>
<UploadBox
label='آپلود ویدیو'
onChange={(file: File[]) => props.onChangeVideoFile(file[0])}
/>
</div>
</div>
</div>
)
}
export default CreateLearningSidebar