Type 'Element | undefined' is not assignable to type 'ReactElement<any, any> | null' – Reactjs
components/UI/Icon: types.ts File: export interface IIcon { iconName: string; iconSize: string; iconFill: string; } index.tsx File: import React, { FC } from 'react'; import { IIcon } from './types'; export const Icon: FC<IIcon> = ({ iconName, iconSize, iconFill }) =>…