import type { FC } from "react";

type NavigationRouteWithOptionalComponent = Omit<NavigationRoute, "Component"> & {
  Component?: NavigationRoute["Component"];
};

interface NavigationRoute {
  Component: FC;
  path: string;
  redirectTo?: string;
  subroutes?: NavigationRouteWithOptionalComponent[];
}

export interface NavigationRoutes {
  private: NavigationRouteWithOptionalComponent[];
  public: NavigationRoute[];
}
