mirror of
https://github.com/supabase/supabase.git
synced 2026-05-07 17:30:25 -04:00
0d657df42e
Docs global top nav
19 lines
608 B
TypeScript
19 lines
608 B
TypeScript
import { type ComponentProps, type PropsWithChildren } from 'react'
|
|
import { GlassPanel } from 'ui-patterns/GlassPanel'
|
|
|
|
import MenuIconPicker from '~/components/Navigation/NavigationMenu/MenuIconPicker'
|
|
|
|
type GlassPanelWithIconPickerProps = PropsWithChildren<
|
|
Omit<ComponentProps<typeof GlassPanel>, 'icon'> & { icon: string }
|
|
>
|
|
|
|
function GlassPanelWithIconPicker({ children, icon, ...props }: GlassPanelWithIconPickerProps) {
|
|
return (
|
|
<GlassPanel icon={<MenuIconPicker icon={icon} width={18} height={18} />} {...props}>
|
|
{children}
|
|
</GlassPanel>
|
|
)
|
|
}
|
|
|
|
export { GlassPanelWithIconPicker }
|