import { <%= classify(name) %>PageState,  } from './<%= dasherize(name) %>.interface';
import { useStateStore } from '~/framework/aop/hooks/use-base-store';
import React, { useContext, useEffect, useCallback, useRef } from 'react';
import { GlobalContext } from '~/solution/context/global/global.provider';
import { IGlobalState } from '~/solution/context/global/global.interface';

export function use<%= classify(name) %>Store() {
    const { state, setStateWrap } = useStateStore(new <%= classify(name) %>PageState());
    const { gState }: IGlobalState = useContext(GlobalContext);
  

    return { state }
}