mirror of
https://github.com/supabase/supabase.git
synced 2026-07-03 05:24:19 +08:00
* add CommandMenuTriggerInput in ui-patterns * optimize search input responsiveness * add event on commandMenu opened * add event on debounced commandMenu input submission * add event on commandMenu command selection * add commandMenu telemetry to studio, www and docs --------- Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
17 lines
445 B
TypeScript
17 lines
445 B
TypeScript
'use client'
|
|
|
|
import type { PropsWithChildren } from 'react'
|
|
|
|
import { CommandProvider } from 'ui-patterns/CommandMenu'
|
|
import { useDocsCommandMenuTelemetry } from 'hooks/useDocsCommandMenuTelemetry'
|
|
|
|
export function DocsCommandProvider({ children }: PropsWithChildren) {
|
|
const { onTelemetry } = useDocsCommandMenuTelemetry()
|
|
|
|
return (
|
|
<CommandProvider app="docs" onTelemetry={onTelemetry}>
|
|
{children}
|
|
</CommandProvider>
|
|
)
|
|
}
|