import * as React from "react"; import ResetIcon from "../../svg-icons/resetIcon"; export interface SelectOption { value: string; label: string; } export interface SelectOptionComponentProps { id: string; onChange: (value: string) => void; value: string; label?: string; title?: string; options: SelectOption[]; style?: React.CSSProperties; className?: string; showResetButton?: boolean; onReset?: () => void; applyFormattingToOptions?: boolean; } export const SelectOptionComponent = (props: SelectOptionComponentProps) => { return (
{ props.label && } { props.showResetButton &&
{ props.onReset?.(); }}>
}
); }; function getOptions(options: SelectOption[]): React.ReactNode[] { return options.map((option) => { return ( ); }); }