1
- import { useState } from "react" ;
2
1
import { Tab } from "@headlessui/react" ;
3
2
4
3
function classNames ( ...classes : ( string | undefined ) [ ] ) {
@@ -15,14 +14,14 @@ export default function Tabs({
15
14
return (
16
15
< div className = "w-full max-w-md px-2 py-16 sm:px-0" >
17
16
< Tab . Group >
18
- < Tab . List className = "flex space-x-1 rounded-xl bg-blue -900/20 p-1" >
17
+ < Tab . List className = "flex gap-10 rounded-xl bg-gray -900/60 p-1" >
19
18
< Tab
20
19
className = { ( { selected } ) =>
21
20
classNames (
22
- "w-full rounded-lg py-2.5 text-sm font-medium leading-5 text-blue-700 " ,
23
- "ring-white ring-opacity-60 ring-offset-2 ring-offset-blue-400 focus:outline-none focus:ring-2" ,
21
+ "w-full rounded-lg py-2.5 text-sm font-medium leading-5 " ,
22
+ " ring-opacity-60 ring-offset-2 ring-offset-blue-400 focus:outline-none focus:ring-2" ,
24
23
selected
25
- ? "bg-white shadow"
24
+ ? "bg-secondary/10 shadow"
26
25
: "text-blue-100 hover:bg-white/[0.12] hover:text-white"
27
26
)
28
27
}
@@ -33,25 +32,35 @@ export default function Tabs({
33
32
< Tab
34
33
className = { ( { selected } ) =>
35
34
classNames (
36
- "w-full rounded-lg py-2.5 text-sm font-medium leading-5 text-blue-700 " ,
35
+ "w-full rounded-lg py-2.5 text-sm font-medium leading-5 " ,
37
36
"ring-white ring-opacity-60 ring-offset-2 ring-offset-blue-400 focus:outline-none focus:ring-2" ,
38
37
selected
39
- ? "bg-white shadow"
38
+ ? "bg-secondary-300/10 shadow"
40
39
: "text-blue-100 hover:bg-white/[0.12] hover:text-white"
41
40
)
42
41
}
43
42
>
44
- Transcriptions
43
+ Transcription
45
44
</ Tab >
46
45
</ Tab . List >
47
- < Tab . Panels className = "mt-2" >
48
- < Tab . Panel
49
- className = { classNames (
50
- "rounded-xl bg-white p-3" ,
51
- "ring-white ring-opacity-60 ring-offset-2 ring-offset-blue-400 focus:outline-none focus:ring-2"
52
- ) }
53
- >
54
-
46
+ < Tab . Panels className = "mt-2 space-x-10" >
47
+ < Tab . Panel >
48
+ < p className = "text-lg text-white" > { summary } </ p >
49
+ </ Tab . Panel >
50
+ < Tab . Panel >
51
+ { transcriptions . map ( ( transcription : any , index ) => {
52
+ return (
53
+ < div className = "bg-white-opacity-5 w-full p-2" key = { index } >
54
+ < h2 className = "gradient-text" > { transcription ?. speaker } </ h2 >
55
+ < p className = "font-lg text-white" >
56
+ { transcription . utterance }
57
+ </ p >
58
+ < div className = "text-sm font-bold text-gray-100 text-opacity-50" >
59
+ { transcription . timestamp }
60
+ </ div >
61
+ </ div >
62
+ ) ;
63
+ } ) }
55
64
</ Tab . Panel >
56
65
</ Tab . Panels >
57
66
</ Tab . Group >
0 commit comments