We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa69eaf commit b047647Copy full SHA for b047647
src/components/Nav/types.ts
@@ -1,6 +1,5 @@
1
import type { FC, RefObject, SVGProps } from "react"
2
import type { IconType } from "react-icons"
3
-import type { IconProps } from "@chakra-ui/react"
4
5
type LinkOnly = { href: string; items?: never }
6
type ItemsOnly = { items: NavItem[]; href?: never }
@@ -9,10 +8,7 @@ type LinkXorItems = LinkOnly | ItemsOnly
9
8
export type NavItem = {
10
label: string
11
description: string
12
- icon?:
13
- | IconType
14
- | FC<SVGProps<SVGElement>>
15
- | ((props: IconProps) => JSX.Element)
+ icon?: IconType | FC<SVGProps<SVGElement>>
16
} & LinkXorItems
17
18
export type NavSectionKey =
0 commit comments