import { memo } from 'react'; import Grid from '@mui/material/Grid'; import List from '@mui/material/List'; import { IconInfoItemList } from '../icon-info-item'; import { IconListItem } from '../icon-list-item'; import { UserInfo } from '../user-info'; import type { SidebarRightProps } from './types'; import createClasses from './styles'; const SidebarRight = (props: SidebarRightProps) => { const { userInfoProps, iconInfoItems, iconListItems, renderCompact, classes } = props; const styles = createClasses(); return ( {userInfoProps && } {iconInfoItems && ( )} {iconListItems && ( {iconListItems.map((item) => ( ))} )} ); }; SidebarRight.defaultProps = { renderCompact: false }; const m = memo(SidebarRight); export { m as SidebarRight };