import { createSelector } from 'reselect'
import <%- fileName %>PageState from './state'
import type I<%- FileName %>PageState from './types'

/**
 * 获取页面状态
 */
const select<%- FileName %>PageState = ({ <%- fileName %>Page }: { <%- fileName %>Page: I<%- FileName %>PageState}): I<%- FileName %>PageState => {
  return <%- fileName %>Page || <%- fileName %>PageState
}

export const makeSelectPage = () => createSelector(
  select<%- FileName %>PageState,
  state => {
    // todo
  },
)
