export function makeRecoveredPage(definition) {
  const {
    title,
    routePath,
    moduleId,
    featureKey,
    component = null,
    status = "recovered",
    ...recovery
  } = definition;

  return {
    title,
    routePath,
    moduleId,
    featureKey,
    component,
    status,
    ...recovery,
    render() {
      return {
        type: "recovered-page",
        title,
        routePath,
        moduleId,
        featureKey,
        component,
        status,
        recovery,
      };
    },
  };
}
