MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / handleSelectOption

Function handleSelectOption

source code/components/ExportDialog.tsx:45–58  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

43 setSelectedOption(null);
44 }, []);
45 const handleSelectOption = async (value: string): Promise<void> => {
46 if (value === 'clipboard') {
47 // Copy to clipboard immediately
48 const raw = await setClipboard(content);
49 if (raw) process.stdout.write(raw);
50 onDone({
51 success: true,
52 message: 'Conversation copied to clipboard'
53 });
54 } else if (value === 'file') {
55 setSelectedOption('file');
56 setShowFilenameInput(true);
57 }
58 };
59 const handleFilenameSubmit = () => {
60 const finalFilename = filename.endsWith('.txt') ? filename : filename.replace(/\.[^.]+$/, '') + '.txt';
61 const filepath = join(getCwd(), finalFilename);

Callers 1

PreviewQuestionViewFunction · 0.85

Calls 3

setClipboardFunction · 0.85
onDoneFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected