mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-04 20:05:16 +02:00
remove tray and clipboard-to-chat feature
This commit is contained in:
parent
f783b00d2e
commit
59e7f8f068
9 changed files with 0 additions and 119 deletions
|
|
@ -330,16 +330,6 @@ const Composer: FC = () => {
|
|||
const composerRuntime = useComposerRuntime();
|
||||
const hasAutoFocusedRef = useRef(false);
|
||||
|
||||
// Clipboard content
|
||||
const [clipboardText, setClipboardText] = useState<string | undefined>();
|
||||
useEffect(() => {
|
||||
const api = window.electronAPI;
|
||||
if (!api?.getClipboardContent) return;
|
||||
api.getClipboardContent().then((text) => {
|
||||
if (text) setClipboardText(text);
|
||||
});
|
||||
}, []);
|
||||
|
||||
const isThreadEmpty = useAssistantState(({ thread }) => thread.isEmpty);
|
||||
const isThreadRunning = useAssistantState(({ thread }) => thread.isRunning);
|
||||
|
||||
|
|
@ -546,7 +536,6 @@ const Composer: FC = () => {
|
|||
onDocumentRemove={handleDocumentRemove}
|
||||
onSubmit={handleSubmit}
|
||||
onKeyDown={handleKeyDown}
|
||||
initialText={clipboardText}
|
||||
className="min-h-[24px]"
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue