mirror of
https://github.com/supabase/supabase.git
synced 2026-06-16 11:58:16 +08:00
* Move all studio files from /studio to /apps/studio. * Move studio specific prettier ignores. * Fix the ui references from studio. * Fix the css imports. * Fix all package.json issues. * Fix the prettier setup for the studio app. * Add .turbo folder to prettierignore. * Fix the github workflows.
14 lines
474 B
TypeScript
14 lines
474 B
TypeScript
import { proxy, snapshot, useSnapshot } from 'valtio'
|
|
|
|
export const integrationInstallationState = proxy({
|
|
loading: false as boolean,
|
|
setLoading: (boolean: boolean) => {
|
|
integrationInstallationState.loading = boolean
|
|
},
|
|
})
|
|
|
|
export const getIntegrationInstallation = () => snapshot(integrationInstallationState)
|
|
|
|
export const useIntegrationInstallationSnapshot = (options?: Parameters<typeof useSnapshot>[1]) =>
|
|
useSnapshot(integrationInstallationState, options)
|