= ({ items = [], ...props }) => {
- // Convert custom items format to Antd's expected format
+ // Convert custom items format to the standard format used throughout the application
const breadcrumbItems = items.map(item => ({
key: item.key,
- title: item.onClick ? (
- {
- e.currentTarget.style.color = '#096dd9';
- e.currentTarget.style.textDecoration = 'underline';
- }}
- onMouseLeave={(e) => {
- e.currentTarget.style.color = '#1890ff';
- e.currentTarget.style.textDecoration = 'none';
- }}
- >
- {item.title}
-
- ) : (
-
- {item.title}
-
- )
+ title: item.title,
+ onClick: item.onClick
}));
return (
-
- /}
- items={breadcrumbItems}
- />
-
+ }
+ items={breadcrumbItems}
+ itemRender={(item) => (
+
+ {item.title}
+
+ )}
+ />
);
};