1
1
import { Close } from '@mui/icons-material'
2
- import { Box , IconButton , Modal , Typography } from '@mui/material'
2
+ import { Box , IconButton , Modal , TextField , Typography } from '@mui/material'
3
3
import ModelSelector from './ModelSelector'
4
4
import { validModels } from '../../../config'
5
5
import React from 'react'
@@ -25,21 +25,33 @@ export const SettingsModal: React.FC<SettingsModalProps> = ({ open, setOpen, mod
25
25
top : '50%' ,
26
26
left : '50%' ,
27
27
transform : 'translate(-50%, -50%)' ,
28
+ display : 'flex' ,
29
+ flexDirection : 'column' ,
30
+ gap : '1.2rem' ,
31
+ minWidth : 600 ,
28
32
width : '85vw' ,
33
+ maxWidth : 1000 ,
29
34
minHeight : '70vh' ,
30
35
bgcolor : 'background.paper' ,
31
36
boxShadow : 24 ,
32
- p : 4 ,
37
+ p : '2.5rem' ,
38
+ borderRadius : '0.3rem' ,
33
39
} }
34
40
>
35
41
< IconButton onClick = { ( ) => setOpen ( false ) } sx = { { position : 'absolute' , top : 8 , right : 8 , color : 'grey.500' } } >
36
42
< Close />
37
43
</ IconButton >
38
- < Typography id = "modal-title" variant = "h6" component = "h2" >
39
- Settings
44
+ < Typography variant = "h6" fontWeight = { 600 } >
45
+ Alustus
40
46
</ Typography >
41
- < ModelSelector currentModel = { model } setModel = { setModel } models = { validModels . map ( ( m ) => m . name ) } />
42
- < RagSelector currentRagIndex = { currentRagIndex } setRagIndex = { setRagIndex } ragIndices = { ragIndices } />
47
+ < Typography variant = "body1" >
48
+ Alustuksella tarkoitetaan yleistason ohjeistusta keskustelulle. Kielimallia voi esimerkiksi pyytää käyttämään akateemista kieltä tai esittämään puutarhuria jota
49
+ haastatellaan kaktusten hoidosta.
50
+ </ Typography >
51
+ { /* <ModelSelector currentModel={model} setModel={setModel} models={validModels.map((m) => m.name)} /> */ }
52
+ { /* Disabled for now due to RAG not functioning cirreclty */ }
53
+ { /* <RagSelector currentRagIndex={currentRagIndex} setRagIndex={setRagIndex} ragIndices={ragIndices} /> */ }
54
+ < TextField multiline minRows = { 6 } maxRows = { 10 } label = "Alustuksen sisältö" defaultValue = "Olet avulias avustaja" />
43
55
</ Box >
44
56
</ Modal >
45
57
)
0 commit comments