/***************************************************************************************
* Copyright (c) 2023 BlackBerry Limited and contributors.
*
* Licensed under the MIT license. See LICENSE file in the project root for details.
***************************************************************************************/
import React from 'react';
import { AbstractOutputProps } from './abstract-output-component';
export enum OptionType {
DEFAULT,
CHECKBOX
}
export interface OptionState {
type: OptionType;
label: string;
condition?: () => boolean;
onClick?: (arg?: unknown) => void;
arg?: () => unknown;
subSection?: DropDownSubSection; // Contains a list of options for a subsection
}
export interface DropDownSubSection {
options: OptionState[]; // Contains a list of options for a subsection
condition: () => boolean;
height?: number;
}
type OptionProps = AbstractOutputProps & OptionState;
abstract class AbstractDropDownOption