import { jsx as _jsx } from "react/jsx-runtime";
import { Route } from "react-router-dom";
import { useAppState } from "../overmind";
export const OverridableRoute = (props) => {
    const state = useAppState();
    const component = state.config.routes.overrides[props.path];
    const _props = component ? { ...props, component } : props;
    return _jsx(Route, { ..._props });
};
//# sourceMappingURL=OverridableRoute.js.map