17 lines
440 B
TypeScript
17 lines
440 B
TypeScript
import { Everything } from "../interfaces";
|
|
import { Props } from "./interfaces";
|
|
import {
|
|
selectAllImages,
|
|
getDeviceAccountSettings
|
|
} from "../resources/selectors";
|
|
|
|
export function mapStateToProps(props: Everything): Props {
|
|
return {
|
|
deviceAccount: getDeviceAccountSettings(props.resources.index),
|
|
auth: props.auth,
|
|
bot: props.bot,
|
|
dispatch: props.dispatch,
|
|
images: selectAllImages(props.resources.index)
|
|
};
|
|
}
|