Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import * as React from "react";
import { t } from "i18next";
import { Button, Classes, MenuItem } from "@blueprintjs/core";
import { ISelectItemRendererProps, Select } from "@blueprintjs/labs";
import { DropDownItem } from "./fb_select";
import { NULL_CHOICE } from "./new_fb_select";
const SelectComponent = Select.ofType();
type PossibleReferences =
| "Sequences"
| "Regimens";
interface ParentMenu {
title: string;
value: string | number;
subMenus: DropDownItem[];
reference: PossibleReferences;
}
interface Props {
items: DropDownItem[];
selectedItem: DropDownItem;
onChange: (item: DropDownItem) => void;
import * as React from "react";
import { t } from "i18next";
import { Button, Classes, MenuItem } from "@blueprintjs/core";
import { ISelectItemRendererProps, Select } from "@blueprintjs/labs";
import { DropDownItem } from "./fb_select";
const SelectComponent = Select.ofType();
interface Props {
items: DropDownItem[];
selectedItem: DropDownItem;
onChange: (item: DropDownItem) => void;
nullChoice: DropDownItem;
}
interface State {
item?: DropDownItem | undefined;
minimal?: boolean;
resetOnSelect?: boolean;
}
export class FilterSearch extends React.Component> {