import React from 'react'; import { FrownOutlined, MehOutlined, SmileOutlined } from '@ant-design/icons'; import { Rate } from 'antd'; const customIcons: Record = { 1: , 2: , 3: , 4: , 5: , }; const App: React.FC = () => ( <> index + 1} />
customIcons[index + 1]} /> ); export default App;