synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
30 lines • 1.26 kB
TypeScript
import { ManagedACTAccessRequirement, RestrictableObjectType } from '@sage-bionetworks/synapse-types';
export type ManagedACTAccessRequirementItemProps = {
/**
* The ManagedACTAccessRequirement to be displayed.
*/
accessRequirement: ManagedACTAccessRequirement;
/**
* If available, the ID of the object that this access requirement is being displayed for.
*/
subjectId?: string;
/**
* If available, the type of the object that this access requirement is being displayed for.
*/
subjectType?: RestrictableObjectType;
/**
* Invoked when the user clicks the "I do not accept" button.
*/
onRejectTerms: () => void;
/**
* Invoked when the user clicks the "Request access" button.
*/
onRequestAccess: () => void;
};
/**
* Renders a {@link RequirementItem} for a ManagedACTAccessRequirement, which allows a user to see if they have met the
* requirement, and if not, complete a data access request to apply for access.
*/
export declare function ManagedACTAccessRequirementItem(props: ManagedACTAccessRequirementItemProps): import("react/jsx-runtime").JSX.Element;
export default ManagedACTAccessRequirementItem;
//# sourceMappingURL=ManagedACTAccessRequirementItem.d.ts.map