TeaSpeak-Client/imports/shared-app/ui/frames/control-bar/DropDown.d.ts
2021-02-20 18:55:36 +01:00

19 lines
737 B
TypeScript

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;