27 lines
898 B
TypeScript
Raw Normal View History

2025-05-28 21:43:02 +01:00
import './index.css';
2025-06-09 10:04:40 +01:00
import React, { useState } from 'react';
2025-05-28 21:43:02 +01:00
import HomePage from './pages/HomePage';
2025-06-09 10:04:40 +01:00
import { SidecarTest } from './components/SidecarTest';
2025-05-28 21:43:02 +01:00
export default function App() {
2025-06-09 10:04:40 +01:00
const [showTests, setShowTests] = useState(true); // Start with tests visible
return (
<div className="min-h-screen bg-gray-100">
<div className="bg-white shadow-sm border-b">
<div className="max-w-4xl mx-auto px-4 py-3 flex justify-between items-center">
<h1 className="text-xl font-bold">Stirling PDF - Tauri Integration</h1>
<button
onClick={() => setShowTests(!showTests)}
className="px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700"
>
{showTests ? 'Show App' : 'Show Tests'}
</button>
</div>
</div>
{showTests ? <SidecarTest /> : <HomePage />}
</div>
);
2025-05-28 21:43:02 +01:00
}