6
6
import React , { useCallback , useState } from 'react' ;
7
7
import { Source } from '~/lib/convert-state' ;
8
8
import ConvertUI from './ConvertUi' ;
9
+ import { Footer } from './Footer' ;
9
10
import { Probe } from './Probe' ;
10
11
import { Button } from './ui/button' ;
11
12
@@ -30,47 +31,51 @@ export const FileAvailable: React.FC<{
30
31
} , [ ] ) ;
31
32
32
33
return (
33
- < div className = "overflow-y-auto w-full lg:flex lg:justify-center pt-6 pb-10 px-4" >
34
- < div >
35
- < div className = "block" >
36
- < Button variant = "link" onClick = { clear } >
37
- < svg
38
- xmlns = "http://www.w3.org/2000/svg"
39
- viewBox = "0 0 448 512"
40
- style = { { height : 16 } }
41
- >
42
- < path
43
- fill = "currentcolor"
44
- d = "M18.2 273l-17-17 17-17L171.8 85.4l17-17 33.9 33.9-17 17L93.1 232 424 232l24 0 0 48-24 0L93.1 280 205.8 392.6l17 17-33.9 33.9-17-17L18.2 273z"
45
- />
46
- </ svg >
47
- < div className = "w-2" />
48
- Choose another file
49
- </ Button >
50
- </ div >
51
- < div className = "lg:inline-flex lg:flex-row" >
52
- < Probe
53
- src = { src }
54
- probeDetails = { probeDetails }
55
- setProbeDetails = { setProbeDetails }
56
- setAudioCodec = { setCurrentAudioCodec }
57
- setVideoCodec = { setCurrentVideoCodec }
58
- onTracks = { onTracks }
59
- onDuration = { setDuration }
60
- />
61
- < div className = "h-8 lg:h-0 lg:w-8" />
62
- < div className = "w-full lg:w-[350px]" >
63
- < div className = "gap-4" >
64
- < ConvertUI
65
- currentAudioCodec = { currentAudioCodec }
66
- currentVideoCodec = { currentVideoCodec }
67
- src = { src }
68
- tracks = { tracks }
69
- setSrc = { setSrc }
70
- duration = { duration }
71
- />
34
+ < div >
35
+ < div className = "overflow-y-auto w-full lg:flex lg:justify-center pt-6 pb-10 px-4" >
36
+ < div >
37
+ < div className = "block" >
38
+ < Button variant = "link" onClick = { clear } >
39
+ < svg
40
+ xmlns = "http://www.w3.org/2000/svg"
41
+ viewBox = "0 0 448 512"
42
+ style = { { height : 16 } }
43
+ >
44
+ < path
45
+ fill = "currentcolor"
46
+ d = "M18.2 273l-17-17 17-17L171.8 85.4l17-17 33.9 33.9-17 17L93.1 232 424 232l24 0 0 48-24 0L93.1 280 205.8 392.6l17 17-33.9 33.9-17-17L18.2 273z"
47
+ />
48
+ </ svg >
49
+ < div className = "w-2" />
50
+ Choose another file
51
+ </ Button >
52
+ </ div >
53
+ < div className = "lg:inline-flex lg:flex-row" >
54
+ < Probe
55
+ src = { src }
56
+ probeDetails = { probeDetails }
57
+ setProbeDetails = { setProbeDetails }
58
+ setAudioCodec = { setCurrentAudioCodec }
59
+ setVideoCodec = { setCurrentVideoCodec }
60
+ onTracks = { onTracks }
61
+ onDuration = { setDuration }
62
+ />
63
+ < div className = "h-8 lg:h-0 lg:w-8" />
64
+ < div className = "w-full lg:w-[350px]" >
65
+ < div className = "gap-4" >
66
+ < ConvertUI
67
+ currentAudioCodec = { currentAudioCodec }
68
+ currentVideoCodec = { currentVideoCodec }
69
+ src = { src }
70
+ tracks = { tracks }
71
+ setSrc = { setSrc }
72
+ duration = { duration }
73
+ />
74
+ </ div >
72
75
</ div >
73
76
</ div >
77
+ < div className = "h-16" />
78
+ < Footer />
74
79
</ div >
75
80
</ div >
76
81
</ div >
0 commit comments