import { getSheetForSyncing } from "./getSheetForSyncing" ; export function showSettingsDialog ( ) { if ( getSheetForSyncing ( ) === null ) { SpreadsheetApp . getUi ( ) . alert ( "Please click \"Set up for syncing\" button on sidebar to create a sheet for syncing first." ) ; } else { const html = HtmlService . createHtmlOutputFromFile ( 'settings.html' ) . setSandboxMode ( HtmlService . SandboxMode . IFRAME ) ; SpreadsheetApp . getUi ( ) . showModalDialog ( html , 'Settings' ) ; } }