TeaSpeak-Client/imports/shared-app/ui/frames/control-bar/DropDown.d.ts

19 lines
737 B
TypeScript
Raw Normal View History

2021-02-20 12:55:36 -05:00
import * as React from "react";
import { ReactComponentBase } from "tc-shared/ui/react-elements/ReactComponentBase";
import { RemoteIconInfo } from "tc-shared/file/Icons";
export interface DropdownEntryProperties {
icon?: string | RemoteIconInfo;
text: JSX.Element | string;
onClick?: (event: React.MouseEvent) => void;
onAuxClick?: (event: React.MouseEvent) => void;
onContextMenu?: (event: React.MouseEvent) => void;
children?: React.ReactElement<DropdownEntry>[];
}
export declare class DropdownEntry extends ReactComponentBase<DropdownEntryProperties, {}> {
protected defaultState(): {};
render(): JSX.Element;
}
export declare const DropdownContainer: (props: {
children: any;
}) => JSX.Element;