Files
supabase/apps/docs/features/ui/IconPanelWithIconPicker.tsx
Francesco Sansalvadore 0d657df42e feat: docs global top nav (#26917)
Docs global top nav
2024-07-04 11:51:13 +02:00

15 lines
492 B
TypeScript

import { type ComponentProps } from 'react'
import { IconPanel } from 'ui-patterns'
import MenuIconPicker from '~/components/Navigation/NavigationMenu/MenuIconPicker'
type IconPanelWithIconPickerProps = Omit<ComponentProps<typeof IconPanel>, 'icon'> & {
icon: string
}
function IconPanelWithIconPicker({ icon, ...props }: IconPanelWithIconPickerProps) {
return <IconPanel icon={<MenuIconPicker icon={icon} width={18} height={18} />} {...props} />
}
export { IconPanelWithIconPicker }