// icons import { Contrast, LayoutGrid, Users } from "lucide-react"; // helpers import { renderEmoji } from "helpers/emoji.helper"; import { truncateText } from "helpers/string.helper"; // types import { IProject } from "types"; type Props = { projects: IProject[]; }; export const CustomAnalyticsSidebarProjectsList: React.FC = (props) => { const { projects } = props; return (

Selected projects

{projects.map((project) => (
{project.emoji ? ( {renderEmoji(project.emoji)} ) : project.icon_prop ? (
{renderEmoji(project.icon_prop)}
) : ( {project?.name.charAt(0)} )}

{truncateText(project.name, 20)}

({project.identifier})
Total members
{project.total_members}
Total cycles
{project.total_cycles}
Total modules
{project.total_modules}
))}
); };