import { Box, Button, FormControl, IconButton, MenuItem, Select, SelectChangeEvent, Tooltip } from '@mui/material' import { RocketLaunch } from '@mui/icons-material' type RunMenuProps = { selectedFilePath: string fileContent: string prevFileContent: string selectedRunTime: string runTimes: string[] handleChangeRunTime: (event: SelectChangeEvent) => void handleRunBtnClick: () => void } const RunMenu = ({ selectedFilePath, fileContent, prevFileContent, selectedRunTime, runTimes, handleChangeRunTime, handleRunBtnClick }: RunMenuProps) => { const launchProgram = () => { const pathName = window.location.pathname === '/' ? '' : window.location.pathname const baseUrl = window.location.origin + pathName window.open(`${baseUrl}/SASjsApi/stp/execute?_program=${selectedFilePath}`) } return ( <> {selectedFilePath ? ( ) : ( )} ) } export default RunMenu