The Breadcrum component lacks proper error handling, default prop values, and accessibility features. It also does not validate prop types or allow customization of the breadcrumb separator icon.
Steps to Reproduce
Use the Breadcrum component without providing a product prop.
Provide a product prop with missing category or name fields.
Attempt to customize the breadcrumb separator icon.
Expected Behavior
The Breadcrum component should render without errors even if the product prop is missing or incomplete.
Default values should be used if category or name fields are missing from the product prop.
The separator icon between breadcrumb items should be customizable.
Accessibility attributes should be present for images.
Actual Behavior
The Breadcrum component throws an error if the product prop is missing.
Missing category or name fields result in rendering issues.
Issue Description
The
Breadcrum
component lacks proper error handling, default prop values, and accessibility features. It also does not validate prop types or allow customization of the breadcrumb separator icon.Steps to Reproduce
Breadcrum
component without providing a product prop.Expected Behavior
Breadcrum
component should render without errors even if the product prop is missing or incomplete.Actual Behavior
Breadcrum
component throws an error if the product prop is missing.category
orname
fields result in rendering issues.alt
attributes for accessibility.Screenshots
N/A