@etsoo/materialui
Version:
TypeScript Material-UI Implementation
41 lines (40 loc) • 850 B
TypeScript
import { EventWatcher } from "@etsoo/react";
import React from "react";
/**
* User menu props
*/
export interface UserMenuProps {
/**
* Organization id
*/
organization: number | undefined;
/**
* User name
*/
name: string;
/**
* User avatar
*/
avatar: string | undefined;
/**
* Children
* @param handleMenuClose Handler
*/
children(handleMenuClose: () => void): React.ReactNode;
}
export interface UserMenuLocalProps extends Omit<UserMenuProps, "children"> {
/**
* Current screen size is down sm
*/
smDown: boolean;
}
/**
* Event watcher
*/
export declare const eventWatcher: EventWatcher;
/**
* User menu
* @param props Props
* @returns Component
*/
export declare function UserMenu(props: UserMenuProps): import("react/jsx-runtime").JSX.Element;