// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
import * as React from 'react';
import Box from '@mui/material/Box';
import IconButton from '@mui/material/IconButton';
import ArrowBackIosIcon from '@mui/icons-material/ArrowBackIos';
import CloseIcon from '@mui/icons-material/Close';
import MenuIcon from '@mui/icons-material/Menu';
import { grey } from '@mui/material/colors';
import Typography from '@mui/material/Typography';
import AppBar from '@mui/material/AppBar';
import Toolbar from '@mui/material/Toolbar';
import Drawer from '@mui/material/Drawer';
import Divider from '@mui/material/Divider';
import {Stack,FormControl,InputLabel,Select,MenuItem,Slider} from '@mui/material';
const drawerWidth = 300;
const models = ['gpt-3.5-turbo','gpt-3.5-turbo-0301'];//['text-davinci-003','code-davinci-002'];
export const modelParamsCtx = React.createContext();
export const useModelParams =()=>{
    return React.useContext(modelParamsCtx)
}
export const defaultModelParams = {
  frequency_penalty: 0,
  max_tokens:4096,
  presence_penalty: 0,
  top_p:1,
  model_name:models[0],
}
const CustSlider = ({name,label,desc,min,max,defaultValue,step,setModelParams})=>{
  const [value,setValue] = React.useState(defaultValue);
  return (
    
        
          {label}
          {value}
        
        {`(${desc})`}
     {
          setValue(event.target.value);
          setModelParams(prev=>({...prev,[name]:event.target.value}));
        }
        }
      />
    
  )
}
const ToolBox =({toggleDrawer,setModelParams})=>{
  const [modelName, setModelName] = React.useState(models[0]);
  return (
    
      
      
          
      
      
      
      
      
         {"Change model settings"} 
      
      
        {"Model"}
        
      
      
      
      
      
      
    
  )
}
export const TopNavHeader =({setModelParams})=>{
const [toggleState, setToggleState] = React.useState(false);
const toggleDrawer = (open) =>
    (event) => {
      if (
        event.type === 'keydown' &&
        (event.key === 'Tab' ||
          event.key === 'Shift')
      ) {
        return;
      }
      setToggleState(open);
    };
return (
        
      
      
          AI Assistant
      
      
            
          
          
)}