import { Input, Select } from 'antd'; import InputComponent from 'components/Input'; import TimePreference from 'components/TimePreferenceDropDown'; import { GRAPH_TYPES } from 'container/NewDashboard/ComponentsSlider'; import GraphTypes, { ITEMS, } from 'container/NewDashboard/ComponentsSlider/menuItems'; import React, { useCallback } from 'react'; import { Container, Title } from './styles'; import { timePreferance } from './timeItems'; import YAxisUnitSelector from './YAxisUnitSelector'; const { TextArea } = Input; const { Option } = Select; function RightContainer({ description, setDescription, setTitle, title, selectedGraph, setSelectedTime, selectedTime, yAxisUnit, setYAxisUnit, setGraphHandler, }: RightContainerProps): JSX.Element { const onChangeHandler = useCallback( (setFunc: React.Dispatch>, value: string) => { setFunc(value); }, [], ); const selectedGraphType = GraphTypes.find((e) => e.name === selectedGraph)?.display || ''; return ( Panel Type Panel Attributes onChangeHandler(setTitle, event.target.value) } value={title} /> Description