summaryrefslogtreecommitdiff
path: root/src/pages/ConfigPage.tsx
blob: d773b18692ba9eb8141420460778a0924685dd95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import Config from '~/components/Config';
import { connect } from '~/components/StateProvider';
import { getClashAPIConfig, getSelectedChartStyleIndex } from '~/store/app';
import { getConfigs } from '~/store/configs';
import { State } from '~/store/types';

const mapState = (state: State) => ({
  configs: getConfigs(state),
  selectedChartStyleIndex: getSelectedChartStyleIndex(state),
  apiConfig: getClashAPIConfig(state),
});

export default connect(mapState)(Config);