📁 Changed TDrive root folder (#16)

📁 Changed TDrive root folder
This commit is contained in:
Montassar Ghanmy
2023-04-11 10:04:29 +01:00
committed by GitHub
parent 3b3f67af07
commit e0615fa867
10548 changed files with 48 additions and 48 deletions
@@ -0,0 +1,33 @@
import React from 'react';
import { DataFileType } from '../types';
import { Play } from 'react-feather';
type PropsType = {
file: DataFileType;
};
const LargePreview = ({ file: { thumbnail, type } }: PropsType): JSX.Element => {
return (
<div
className="file-large-preview"
style={{
backgroundImage: `url(${thumbnail})`,
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
}}
>
{type === 'video' && (
<div className='file-large-preview-play-container'>
<Play
size={32}
color={'white'}
strokeWidth={3}
/>
</div>
)}
</div>
);
};
export default LargePreview;