UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

25 lines 1.11 kB
import { SxProps, Theme } from '@mui/material'; export type HasAccessProps = { onHide?: () => void; entityId: string; className?: string; showButtonText?: boolean; wrap?: boolean; /** * If true, the component will show enhanced UI for the case where * - the entity is a FileEntity, AND * - the caller has permission to fetch the dataFileHandle, AND * - the dataFileHandle is an instance of ExternalFileHandleInterface (i.e. the file is not controlled by Synapse) * Note that this requires an additional API call that cannot be batched, so it should be avoided in bulk contexts if possible. * @default false */ showExternalAccessIcon?: boolean; sx?: SxProps<Theme>; }; /** * HasAccess shows if the user has access to the file or not. If the user doesn't have access due to a restriction, * then a link will be shown that opens a modal with steps to request access. */ export declare function HasAccessV2(props: HasAccessProps): import("react/jsx-runtime").JSX.Element; export default HasAccessV2; //# sourceMappingURL=HasAccessV2.d.ts.map