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

/**
 * 获取购物车页状态
 */
const select<%- FileName %>State = ({ <%- fileName %> }: { <%- fileName %>: I<%- FileName %>State}): I<%- FileName %>State => {
  return <%- fileName %> || <%- fileName %>State
}

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