import { ReactNode } from "react";
import { RouteObject } from "react-router-dom";
import { ModuleMetadata } from "../../../common";

export type ModuleClientParams = { [key: string]: any };

export interface IModuleClient extends ModuleMetadata {
  protected?: boolean; // determina si las rutas deben ser protegidas
  icon?: ReactNode;
  routes?: (params: ModuleClientParams) => RouteObject[];
  layout?: "app" | "auth";
}
