// SPDX-License-Identifier: MIT
// Copyright contributors to the openassistant project
import { useState } from 'react';
import { ThemeProvider, useTheme } from 'next-themes';
import { AiAssistant } from './components/assistant';
import { ScreenshotWrapper } from './components/screenshot-wrapper';
// Add ThemeToggle component
function ThemeToggle() {
const { theme, setTheme } = useTheme();
return (
);
}
export function App() {
const [startScreenCapture, setStartScreenCapture] = useState(false);
const [screenCaptured, setScreenCaptured] = useState('');
return (
setStartScreenCapture(true)}
onRemoveScreenshot={() => setScreenCaptured('')}
/>
);
}