mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 10:25:06 +03:00
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? This introduces Query Insights. It's the first edition of possible future updates. This takes our old prototype and builds upon it for a more action driven insights view. --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Ali Waseem <waseema393@gmail.com>
16 lines
508 B
TypeScript
16 lines
508 B
TypeScript
import { useSupamonitorEnabledQuery } from 'data/database/supamonitor-enabled-query'
|
|
import { useSelectedProjectQuery } from 'hooks/misc/useSelectedProject'
|
|
|
|
export function useSupamonitorStatus() {
|
|
const { data: project } = useSelectedProjectQuery()
|
|
const { data: isSupamonitorEnabled, isLoading } = useSupamonitorEnabledQuery({
|
|
projectRef: project?.ref,
|
|
connectionString: project?.connectionString,
|
|
})
|
|
|
|
return {
|
|
isSupamonitorEnabled: isSupamonitorEnabled ?? false,
|
|
isLoading,
|
|
}
|
|
}
|