Files
supabase/apps/docs/features/ui/IconPanelWithIconPicker.tsx
Ivan Vasilov 09a62662d8 chore: Clean up ui-patterns imports (#29132)
* Switch all top-level imports for ui-patterns components to use specific components when importing.

* Remove the @ui-patterns shorthand since it works exactly the same without the @.

* More import fixes.

* Fix the ui-patterns tests.
2024-09-30 21:41:26 +02:00

15 lines
502 B
TypeScript

import { type ComponentProps } from 'react'
import { IconPanel } from 'ui-patterns/IconPanel'
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 }