import React from "react"; import clsx from "clsx"; import "./config-item-styles.scss"; import { OpenNewPage } from "@app/assets/images/icons"; interface ConfigItemProps { name: string; image?: string; slug?: string; url?: string; biography?: string; onClick?: () => void; disabled?: boolean; } const ConfigItem: React.FC = ({ name, image, slug, biography, url = "#", onClick, disabled = false, }) => { const handleClick = () => { if (disabled) { return; } if (onClick) { onClick(); } }; return (
{image ? (
{name}
) : (
)}

{name}

{slug && ( e.stopPropagation()} > {slug} {OpenNewPage} )} {biography && (
{biography}
)}
); }; export default ConfigItem;