Custom icons: Typescript and ESLint errors in Next.js 14
<!-- BEFORE YOU REPORT -->
<!-- 1. Search for existing issues! If the issue has already been reported, add a 👍 or a comment to help show your interest. -->
<!-- 2. If your issue pertains to a specific library, please leave it on the relevant repository! -->

**Describe the bug**

<!-- A clear and concise description of what the bug is. -->

Copy paste a custom icon example from the readme page into your Nextjs 14 project:
```tsx
import { forwardRef, ReactElement } from "react";
import { Icon, IconBase, IconWeight } from "@phosphor-icons/react";

const weights = new Map<IconWeight, ReactElement>([
  ["thin", <path d="..." />],
  ["light", <path d="..." />],
  ["regular", <path d="..." />],
  ["bold", <path d="..." />],
  ["fill", <path d="..." />],
  [
    "duotone",
    <>
      <path d="..." opacity="0.2" />
      <path d="..." />
    </>,
  ],
]);

const CustomIcon: Icon = forwardRef((props, ref) => (
  <IconBase ref={ref} {...props} weights={weights} />
));

CustomIcon.displayName = "CustomIcon";

export default CustomIcon;
```
Getting a Typescript error:
```
TS2322: Type
ForwardRefExoticComponent<Omit<IconProps, 'ref'> & RefAttributes<SVGSVGElement>>
is not assignable to type Icon
Types of property defaultProps are incompatible.
....
```

<!-- Steps to reproduce the behavior. -->

**Expected behavior**

<!-- A clear and concise description of what you expected to happen. -->
To not get any errors

**Screenshots**

<!-- If applicable, add screenshots to help explain your problem. -->
Getting this error:
![image](https://github.com/phosphor-icons/react/assets/4083652/494af631-bc89-4d79-a368-0ec6b67b4841)


**Context (please complete the following information):**

<!--
- OS: MacOS Sonomoa
- Browser/Environment: no browser, error is in the IDE
- Library @phosphor-icons/react
- Version ^2.1.5
-->

**Additional notes**

<!-- Add any other context about the problem here. -->
This error wasn't there prior to updating Nextjs (and related packages) from Nextjs 13 to Nextjs 14