import containerConnect from 'Framework/ComponentContainer';
import { getConf } from 'App/configuration';

import { Services } from 'App/ServiceLocator';

const mapStateToProps = () => ({
    availableTools: getConf('availableTools'),
});

const mapDispatchToProps = () => ({
    onFastConfiguration: () => Services.ui.show('fastConfiguration'),
    onSave: () => Services.interaction.saveConfiguration(),
    onShare: () => Services.interaction.shareConfiguration(),
    onPrint: () => Services.interaction.printConfiguration(),
    onLoad: () => Services.interaction.loadConfiguration(),
});

export default containerConnect(mapStateToProps, mapDispatchToProps);
