2024-06-11 12:23:30 +00:00
|
|
|
import { ReactNode } from "react";
|
2021-04-12 13:32:25 +00:00
|
|
|
import PropTypes from "prop-types";
|
2016-10-21 23:13:41 +00:00
|
|
|
|
|
|
|
|
export default PropTypes.shape({
|
|
|
|
|
disabled: PropTypes.bool,
|
2016-11-09 14:26:15 +00:00
|
|
|
label: PropTypes.string,
|
2021-05-12 13:06:39 +00:00
|
|
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
2016-10-21 23:13:41 +00:00
|
|
|
});
|
2021-04-09 10:44:57 +00:00
|
|
|
|
2025-04-15 20:55:07 +00:00
|
|
|
export type TooltipContent = ReactNode;
|
2024-12-11 15:19:33 +00:00
|
|
|
|
2021-04-09 10:44:57 +00:00
|
|
|
export interface IDropdownOption {
|
2024-03-11 16:27:34 +00:00
|
|
|
disabled?: boolean;
|
2023-04-27 15:53:30 +00:00
|
|
|
label: string | JSX.Element;
|
2021-05-12 13:06:39 +00:00
|
|
|
value: string | number;
|
2024-06-11 12:23:30 +00:00
|
|
|
helpText?: ReactNode;
|
2023-04-27 15:53:30 +00:00
|
|
|
premiumOnly?: boolean;
|
2024-12-11 15:19:33 +00:00
|
|
|
tooltipContent?: TooltipContent;
|
2024-12-20 15:39:06 +00:00
|
|
|
onClick?: (() => void) | void | null;
|
2021-04-09 10:44:57 +00:00
|
|
|
}
|