in helper/src/components/previewDialog.js [5:28]
export function PreviewDialog({ previewLink, onClose, show}) {
const dialogContentProps = {
type: DialogType.normal,
title: "Preview Feature",
closeButtonAriaLabel: "Close",
};
if(!show){
return null;
}
return (
<>
<Dialog
hidden={false}
onDismiss={onClose}
dialogContentProps={dialogContentProps} >
<div>Review the instructions on this <a href={previewLink} target='_blank' rel="noreferrer" >page</a> to enable the feature</div>
<DialogFooter>
<PrimaryButton onClick={onClose} text="Close" />
</DialogFooter>
</Dialog>
</>
);
}