import { setApiKey } from "./setApiKey" ; export function showApiKeyPrompt ( ) { const ui = SpreadsheetApp . getUi ( ) ; const result = ui . prompt ( 'Set API key' , 'Please enter API key:' , ui . ButtonSet . OK_CANCEL ) ; const button = result . getSelectedButton ( ) ; const text = result . getResponseText ( ) ; if ( button == ui . Button . OK ) { setApiKey ( text ) ; } }