13 lines
275 B
JavaScript
13 lines
275 B
JavaScript
/* eslint-disable import/prefer-default-export */
|
|
import { useStore } from 'stores/hooks';
|
|
|
|
export function useOptions(elementName) {
|
|
const { $calculation } = useStore();
|
|
|
|
const options = $calculation.$options.observeOptions(elementName);
|
|
|
|
return {
|
|
options,
|
|
};
|
|
}
|