+
+ field.onChange(value)}
+ name={AverageDisplayType.ALL}
+ label={i18n.t("All")}
+ />
+ field.onChange(value)}
+ name={AverageDisplayType.BELOW_AVERAGE}
+ label={i18n.t("Below Average")}
+ />
+ field.onChange(value)}
+ name={AverageDisplayType.ABOVE_AVERAGE}
+ label={i18n.t("Above Average")}
+ />
+
+
+ );
+}
+
+export interface ScorecardOptionsModalProps {
+ hide: boolean;
+ onClose: () => void;
+}
+
+export function ScorecardOptionsModal({
+ hide,
+ onClose,
+}: ScorecardOptionsModalProps) {
+ const [state, setState] = useScorecardState();
+ const initialOptions = state.options;
+ const form = useForm