import { ReactNode } from "react";
import { IndexRouteObject, NonIndexRouteObject } from "react-router-dom";

export interface CustomIndexRouteObject extends IndexRouteObject {
    name?: string;
    icon?: ReactNode
}
export interface CustomNonIndexRouteObject extends NonIndexRouteObject {
    name?: string;
    children?: CustomRouteObject[];
    icon?: ReactNode
    handle?: {
        crumb: (data?: any) => void;
    };
}
export type CustomRouteObject =
    | CustomIndexRouteObject
    | CustomNonIndexRouteObject;