@@ -10,11 +10,15 @@ import {
1010 StyledModalDropArea ,
1111 StyledModalEditableList ,
1212 StyledModalEntryList ,
13+ StyledModalImageRow ,
1314 StyledModalInput ,
1415 StyledModalInputRowContainer ,
1516 StyledModalInputSelector ,
1617 StyledModalInputSelectorTitle ,
1718 StyledModalRow ,
19+ StyledModalRowDataText ,
20+ StyledModalRowDataTextEntries ,
21+ StyledModalRowDataTextTitle ,
1822 StyledModalSelectIcon ,
1923 StyledModalTitlebar ,
2024} from "./Modal.styles" ;
@@ -187,7 +191,16 @@ export const ModalRow = ({
187191 return (
188192 < StyledModalEditableList id = { id } > { children } </ StyledModalEditableList >
189193 ) ;
190-
194+ case "img" :
195+ return (
196+ < StyledModalImageRow
197+ color = { theme . palette . text }
198+ roundness = { theme . roundness }
199+ id = { id }
200+ >
201+ { children }
202+ </ StyledModalImageRow >
203+ ) ;
191204 default :
192205 return (
193206 < StyledModalRow
@@ -206,6 +219,41 @@ ModalRow.defaultProps = {
206219 type : "all" ,
207220} ;
208221
222+ export const ModalRowDataText = ( {
223+ id,
224+ title,
225+ data,
226+ } : {
227+ id ?: string ;
228+ title : string ;
229+ data : string [ ] ;
230+ } ) => {
231+ const theme = useTheme ( ) ;
232+
233+ if ( data . length == 0 ) {
234+ return (
235+ < StyledModalRowDataText >
236+ < StyledModalRowDataTextTitle color = { theme . palette . text } >
237+ { `${ title } :` }
238+ </ StyledModalRowDataTextTitle >
239+ </ StyledModalRowDataText >
240+ ) ;
241+ }
242+
243+ return (
244+ < StyledModalRowDataText >
245+ < StyledModalRowDataTextTitle color = { theme . palette . text } >
246+ { `${ title } :` }
247+ </ StyledModalRowDataTextTitle >
248+ < StyledModalRowDataTextEntries >
249+ { data . map ( ( entry ) => {
250+ return < label > { entry } </ label > ;
251+ } ) }
252+ </ StyledModalRowDataTextEntries >
253+ </ StyledModalRowDataText >
254+ ) ;
255+ } ;
256+
209257interface ModalInputBoxProps
210258 extends React . InputHTMLAttributes < HTMLInputElement > {
211259 ref : React . RefObject < HTMLInputElement > ;
0 commit comments