Antd AutoComplete component dataSource attribute input parameter type mismatch problem

when typescript uses antd,
websiteOptions assigns a return value that calls the map () method.
is used on component AutoComplete to report an error:
cannot assign type "void []" to type "DataSourceItemType [] | undefined".

this type should be void []
when map () is assigned to websiteOptions, type, but the type of values available for component dataSource should be DataSourceItemType [] | | undefined
what should be done here?

const websiteOptions = autoCompleteResult.map(website => {
            <AutoCompleteOption key={website}>{website}</AutoCompleteOption>
        })
     
     
    <AutoComplete 
        dataSource={ websiteOptions } // "void[]" "DataSourceItemType[] | undefined" 
        onChange={this.handleWebsiteChange}
        placeholder="">
Apr.11,2021

resolved, const websiteOptions = autoCompleteResult.map (website = > {

)
        <AutoCompleteOption key={website}>{website}</AutoCompleteOption>
    })
   :
   const websiteOptions = autoCompleteResult.map(website => (
        <AutoCompleteOption key={website}>{website}</AutoCompleteOption>
    ))
    
    return

try Map and then do an outer function alone to complete the conversion from void [] to DataSourceItemType [] ?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37432-2b8c7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37432-2b8c7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?