mirror of
https://github.com/fleetdm/fleet
synced 2026-05-14 20:48:35 +00:00
20 lines
537 B
TypeScript
20 lines
537 B
TypeScript
import { ReactNode } from "react";
|
|
import PropTypes from "prop-types";
|
|
|
|
export default PropTypes.shape({
|
|
disabled: PropTypes.bool,
|
|
label: PropTypes.string,
|
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
});
|
|
|
|
export type TooltipContent = string | JSX.Element | undefined;
|
|
|
|
export interface IDropdownOption {
|
|
disabled?: boolean;
|
|
label: string | JSX.Element;
|
|
value: string | number;
|
|
helpText?: ReactNode;
|
|
premiumOnly?: boolean;
|
|
tooltipContent?: TooltipContent;
|
|
onClick?: (() => void) | void | null;
|
|
}
|