EverydayTech Platform - Developer Reference
Complete Source Code Documentation - All Applications
Loading...
Searching...
No Matches
SplashtopCard.jsx
Go to the documentation of this file.
1import React from 'react';
2
3function SplashtopCard({ config, status, loading, onConfigure }) {
4 return (
5 <div className="config-card">
6 <h3>Splashtop Integration</h3>
7 <p>Remote desktop and support integration.</p>
8 <button onClick={onConfigure} disabled={loading} className="btn-primary">
9 {loading ? 'Saving...' : 'Configure Splashtop'}
10 </button>
11 {status && (
12 <div className={`status-message ${status.startsWith('Connected') ? 'success' : 'error'}`}>
13 {status}
14 </div>
15 )}
16 {config && (
17 <div className="current-config">
18 <b>Current config:</b> {JSON.stringify(config)}
19 </div>
20 )}
21 </div>
22 );
23}
24
25export default SplashtopCard;