import * as React from "react"; import { StatefulMenu, OptionProfile } from "baseui/menu"; interface IItem { title: string; subtitle: string; body: string; imgUrl: string; } const ITEMS = Array.from({ length: 4 }, () => ({ title: "David Smith", subtitle: "Senior Engineering Manager", body: "Uber Everything", imgUrl: "https://via.placeholder.com/60x60", })); export default function Example() { return ( ({ title, subtitle, body, }), getProfileItemImg: (item: IItem) => item.imgUrl, getProfileItemImgText: (item: IItem) => item.title, }, }, }} /> ); }