grepsr-ui-elements
Version:
25 lines (24 loc) • 592 B
TypeScript
import React from 'react';
interface Child {
id: number | string;
defaultChecked: boolean;
label: string;
}
interface Parent {
id: number | string;
label: string;
children: Child[];
}
interface DropdownProps {
dataSources?: Parent[] | undefined;
label: string;
size?: 'small' | 'medium';
applyButton?: (l: any) => void;
emptyButton?: (l: any) => void;
handleOpen?: () => void;
open?: boolean;
handleCancel?: () => void;
}
export { DropdownProps };
declare const BillingDropDown: React.FC<DropdownProps>;
export default BillingDropDown;