Because the icons have a very similar structure and are repeated in various parts of the code, an <Icon /> component should be created to reuse where required and at the same time facilitate future changes to the icons.
Once created in the component, replace everywhere where there are icons with the new component.
Because the icons have a very similar structure and are repeated in various parts of the code, an
<Icon />
component should be created to reuse where required and at the same time facilitate future changes to the icons.Once created in the component, replace everywhere where there are icons with the new component.
The component must have the following props:
Something like this: