import React from 'react'; import { Layout, Menu, theme } from 'antd'; const { Sider } = Layout; export const SideMenu = ({ items }) => { items?.map((icon, index) => ({ key: String(index + 1), icon: React.createElement( 'img', { src: icon['menuicon'], height: '200px', width: '300px' }, null ), label: icon['menuname'], })); return (
); };