mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
455 B
17 lines
455 B
2 years ago
|
import { useInjectionState, } from '#imports'
|
||
|
|
||
|
const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState(() => {
|
||
|
|
||
|
},'expanded-form-store')
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
export { useProvideExpandedFormStore }
|
||
|
|
||
|
export function useExpandedFormStoreOrThrow() {
|
||
|
const expandedFormStore = useExpandedFormStore()
|
||
|
if (expandedFormStore == null) throw new Error('Please call `useExpandedFormStore` on the appropriate parent component')
|
||
|
return expandedFormStore
|
||
|
}
|