synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
31 lines • 1.21 kB
TypeScript
import { EntityRef, EntityRefCollectionView } from '@sage-bionetworks/synapse-types';
export type DatasetItemsEditorTableData = EntityRef & {
isSelected: boolean;
setSelected: (value: boolean) => void;
};
export declare function getCopy(entity?: EntityRefCollectionView): {
ADD_ITEMS: string;
ADD_ITEMS_TO: string;
REMOVE_ITEMS: string;
NO_ITEMS_IN_THIS_DATASET: string;
SAVE_TO_CONTINUE: string;
CREATE_VERSION_TO_FREEZE: string;
ENTITY_SAVED: string;
SAVE_CHANGES: string;
ENTITY_FINDER_POPOVER: string;
ENTITY_FINDER_PROMPT: string;
PRECONDITION_FAILED_MESSAGE: string;
PRECONDITION_FAILED_TITLE: string;
PRECONDITION_FAILED_ACTION: string;
NO_CHANGES_MADE: string;
};
export type DatasetItemsEditorProps = {
entityId: string;
/** Callback invoked when the editor changes state to contain un/saved changes. */
onUnsavedChangesChange?: (hasUnsavedChanges: boolean) => void;
onSave?: () => void;
onClose?: () => void;
};
export declare function DatasetItemsEditor(props: DatasetItemsEditorProps): import("react/jsx-runtime").JSX.Element;
export default DatasetItemsEditor;
//# sourceMappingURL=DatasetItemsEditor.d.ts.map