import React, { ReactNode } from "react";
import { RouteObject } from "react-router-dom";
import { ModuleMetadata } from "./types";

export interface ModuleClientMetadata extends ModuleMetadata {
  route: string;
  icon?: ReactNode;
}

export interface IModuleClient {
  metadata: ModuleClientMetadata;
  routes?: () => RouteObject[];
  component?: React.FC;
  setup?(): void;
}
