mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 20:01:46 +00:00
multiple file download with progress bar and percentage
This commit is contained in:
@@ -11,7 +11,7 @@ enum PlayerState {
|
||||
Paused,
|
||||
}
|
||||
|
||||
export const AudioPreview: FunctionComponent<{ file: any }> = ({ file }) => {
|
||||
const AudioPreview: FunctionComponent<{ file: any }> = ({ file }) => {
|
||||
const [playerStatus, setPlayerStatus] = useState(PlayerState.Loading)
|
||||
|
||||
return (
|
||||
@@ -79,3 +79,5 @@ export const AudioPreview: FunctionComponent<{ file: any }> = ({ file }) => {
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default AudioPreview
|
||||
|
||||
@@ -6,9 +6,9 @@ import { useClipboard } from 'use-clipboard-copy'
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
import toast, { Toaster } from 'react-hot-toast'
|
||||
|
||||
import { getBaseUrl } from "../../utils/getBaseUrl"
|
||||
import { getBaseUrl } from '../../utils/getBaseUrl'
|
||||
|
||||
export const VideoPreview: FunctionComponent<{ file: any }> = ({ file }) => {
|
||||
const VideoPreview: FunctionComponent<{ file: any }> = ({ file }) => {
|
||||
const { asPath } = useRouter()
|
||||
const clipboard = useClipboard()
|
||||
|
||||
@@ -81,3 +81,5 @@ export const VideoPreview: FunctionComponent<{ file: any }> = ({ file }) => {
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default VideoPreview
|
||||
|
||||
Reference in New Issue
Block a user