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.
15 lines
380 B
15 lines
380 B
import { AppState } from 'src/types'
|
|
|
|
export const getEntities = (state: AppState, name: string) => {
|
|
const entityList = state.lists[name]
|
|
if (!entityList) return []
|
|
|
|
return entityList.entities
|
|
}
|
|
|
|
export const getLastChecked = (state: AppState, name: string) => {
|
|
const entityList = state.lists[name]
|
|
if (!entityList) return 0
|
|
|
|
return entityList.checked
|
|
}
|