import { PropsWithChildren } from 'react' ; import { IOpenSource } from './IOpenSource' ; import { EmptyRowCol } from '../common' ; import { CommonRows } from '../common/CommonRow' ; import { IRow } from '../common/IRow' ; export default function OpenSourceRow ( { payload , } ) { return ( < EmptyRowCol > { payload . list . map ( ( item , index ) => ( < CommonRows key = { index . toString ( ) } payload = { serialize ( item ) } index = { index } / > ) ) } < /EmptyRowCol>); } function serialize ( item ) { return { left : { title : item . title , } , right : { descriptions : item . descriptions , } , } ; }