mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 02:45:07 +03:00
10 lines
247 B
TypeScript
10 lines
247 B
TypeScript
import { useParams } from 'common'
|
|
import { useProjectDetailQuery } from 'data/projects/project-detail-query'
|
|
|
|
export function useSelectedProject() {
|
|
const { ref } = useParams()
|
|
const { data } = useProjectDetailQuery({ ref })
|
|
|
|
return data
|
|
}
|