mirror of
https://github.com/supabase/supabase.git
synced 2026-05-07 17:30:25 -04:00
09a62662d8
* 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.
15 lines
502 B
TypeScript
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 }
|