import { WebApplication } from '@/UIModels/Application' import { SNComponent } from '@standardnotes/snjs' import { Component } from 'react' interface Props { application: WebApplication callback: (approved: boolean) => void dismiss: () => void component: SNComponent permissionsString: string } class PermissionsModal extends Component { accept = () => { this.props.callback(true) this.props.dismiss() } deny = () => { this.props.callback(false) this.props.dismiss() } override render() { return (
Activate Component
Cancel
{this.props.component.displayName} {' would like to interact with your '} {this.props.permissionsString}

Components use an offline messaging system to communicate. Learn more at{' '} https://standardnotes.com/permissions.

) } } export default PermissionsModal