@@ -2,6 +2,7 @@ import { Dispatch, SetStateAction, useState } from "react";
2
2
3
3
import ChatBot , { Params } from "react-chatbotify" ;
4
4
import { formatPreviewIdToTitleCase } from "../../utils" ;
5
+ import { Trash } from "lucide-react" ;
5
6
6
7
type ThemePreviewProps = {
7
8
previewIds : string [ ] ;
@@ -68,7 +69,7 @@ const ThemePreview = ({ previewIds, setPreviewIds }: ThemePreviewProps) => {
68
69
className = { `h-[92vh] bg-accent-800 p-5 flex flex-col items-center
69
70
w-screen md:w-[45rem] absolute md:relative` }
70
71
>
71
- < div className = "text-accent-50 mb-4 md:mb-12 w-full md:mt-14" >
72
+ < div className = "text-accent-50 mb-4 md:mb-6 w-full md:mt-14" >
72
73
< h2 className = "text-2xl font-semibold" > Preview</ h2 >
73
74
< h3 className = "text-accent-400" > { previewIds . length } theme(s) selected</ h3 >
74
75
</ div >
@@ -96,20 +97,23 @@ const ThemePreview = ({ previewIds, setPreviewIds }: ThemePreviewProps) => {
96
97
flow = { flow }
97
98
themes = { previewIds . map ( ( themeId ) => ( { id : themeId } ) ) }
98
99
settings = { { general : { embedded : true } } }
99
- styles = { { chatWindowStyle : { height : "50vh " } } }
100
+ styles = { { chatWindowStyle : { height : "45vh " } } }
100
101
/>
101
102
< div className = "w-full mt-8 max-h-[300px] overflow-y-auto" >
102
103
{ previewIds . map ( ( previewId ) => {
103
104
const previewTitle = formatPreviewIdToTitleCase ( previewId ) ;
104
105
return (
105
106
< div className = "flex justify-between my-2" >
106
107
< span className = "text-accent-50 font-semibold text-lg" > { previewTitle } </ span >
107
- < button
108
- onClick = { ( ) => handleRemoveSelectionClick ( previewId ) }
109
- className = "text-blue-500 hover:text-blue-600 font-semibold"
110
- >
111
- Remove Selection (x)
112
- </ button >
108
+ < div className = "text-blue-500 hover:text-blue-600 flex items-center" >
109
+ < button
110
+ onClick = { ( ) => handleRemoveSelectionClick ( previewId ) }
111
+ className = "font-semibold mr-[3px]"
112
+ >
113
+ Remove Selection
114
+ </ button >
115
+ < Trash size = { 15 } />
116
+ </ div >
113
117
</ div >
114
118
) ;
115
119
} ) }
0 commit comments