import Rules from '~/components/Rules';
import { connect } from '~/components/StateProvider';
import { getClashAPIConfig } from '~/store/app';
import { State } from '~/store/types';

const mapState = (state: State) => ({
  apiConfig: getClashAPIConfig(state),
});

export default connect(mapState)(Rules);
