2018-02-20 09:30:36 +00:00
|
|
|
/* @flow */
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
import React from 'react';
|
2018-03-08 16:10:53 +00:00
|
|
|
import { Notification } from '../common/Notification';
|
2018-02-20 09:30:36 +00:00
|
|
|
|
|
|
|
const Acquire = (props: any): any => {
|
2018-03-08 16:10:53 +00:00
|
|
|
|
|
|
|
const actions = [
|
|
|
|
{
|
|
|
|
label: 'Acquire device',
|
|
|
|
callback: () => {
|
|
|
|
props.acquireDevice()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2018-02-20 09:30:36 +00:00
|
|
|
return (
|
|
|
|
<section className="acquire">
|
2018-03-08 16:10:53 +00:00
|
|
|
<Notification
|
|
|
|
title="Device is used in other window"
|
|
|
|
message="Do you want to use your device in this window?"
|
|
|
|
className="info"
|
|
|
|
cancelable={false}
|
|
|
|
actions={actions}
|
|
|
|
close={ () => {} }
|
|
|
|
/>
|
|
|
|
{/* <div className="warning">
|
2018-02-20 09:30:36 +00:00
|
|
|
<div>
|
2018-03-08 16:10:53 +00:00
|
|
|
<h2></h2>
|
|
|
|
<p></p>
|
2018-02-20 09:30:36 +00:00
|
|
|
</div>
|
|
|
|
<button onClick={ event => props.acquireDevice() }>Acquire device</button>
|
2018-03-08 16:10:53 +00:00
|
|
|
</div> */}
|
2018-02-20 09:30:36 +00:00
|
|
|
</section>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Acquire;
|