import React, { useRef, forwardRef } from 'react'; import { IconCaretDown } from '@tabler/icons'; import Dropdown from 'components/Dropdown'; import StyledWrapper from './StyledWrapper'; const RequestBodyMode = () => { const dropdownTippyRef = useRef(); const onDropdownCreate = (ref) => dropdownTippyRef.current = ref; const Icon = forwardRef((props, ref) => { return (
JSON
); }); return(
} placement='bottom-end'>
Form
{ dropdownTippyRef.current.hide(); }}> Multipart Form
{ dropdownTippyRef.current.hide(); }}> Form Url Encoded
Raw
{ dropdownTippyRef.current.hide(); }}> JSON
{ dropdownTippyRef.current.hide(); }}> XML
{ dropdownTippyRef.current.hide(); }}> TEXT
Other
{ dropdownTippyRef.current.hide(); }}> No Body
); }; export default RequestBodyMode;