
export interface MenuItem {
  path: string;
  name: string;
  meta: {
    title: string;
    icon?: string;
  };
  onClick?: () => void;
}


// layout的场景， auth表示没有头部
export type Stage = 'auth' | 'common' | 'desktop';



export interface HeaderProps {
  logo: React.ReactNode;
  menus: MenuItem[];
  selectedKeys?: string[];
}

export interface ChangePasswordPrams {
  oldPasswd: string;
  newPasswd: string;
}

export interface ChangePasswordProps {
  onChange?: (v: ChangePasswordPrams) => void;
}


export interface YLayoutProps {
  isLoading?: boolean;
  stage: Stage;
  config: {
    logo: React.ReactNode;
    menus: MenuItem[];
    moduleName?: string;
    moduleId?: string;
  };
}