import PropTypes from 'prop-types'; import { useState } from 'react'; // material-ui import { useTheme } from '@mui/material/styles'; import Avatar from '@mui/material/Avatar'; import Card from '@mui/material/Card'; import Grid from '@mui/material/Grid'; import InputAdornment from '@mui/material/InputAdornment'; import OutlinedInput from '@mui/material/OutlinedInput'; import Popper from '@mui/material/Popper'; import Box from '@mui/material/Box'; // third party import PopupState, { bindPopper, bindToggle } from 'material-ui-popup-state'; // project imports import Transitions from 'ui-component/extended/Transitions'; // assets import { IconAdjustmentsHorizontal, IconSearch, IconX } from '@tabler/icons-react'; function HeaderAvatar({ children, ref, ...others }) { const theme = useTheme(); return ( {children} ); } // ==============================|| SEARCH INPUT - MOBILE||============================== // function MobileSearch({ value, setValue, popupState }) { const theme = useTheme(); return ( setValue(e.target.value)} placeholder="Search" startAdornment={ } endAdornment={ } aria-describedby="search-helper-text" slotProps={{ input: { 'aria-label': 'weight', sx: { bgcolor: 'transparent', pl: 0.5 } } }} sx={{ width: '100%', ml: 0.5, px: 2, bgcolor: 'background.paper' }} /> ); } // ==============================|| SEARCH INPUT ||============================== // export default function SearchSection() { const [value, setValue] = useState(''); return ( <> {(popupState) => ( <> {({ TransitionProps }) => ( <> )} )} setValue(e.target.value)} placeholder="Search" startAdornment={ } endAdornment={ } aria-describedby="search-helper-text" slotProps={{ input: { 'aria-label': 'weight', sx: { bgcolor: 'transparent', pl: 0.5 } } }} sx={{ width: { md: 250, lg: 434 }, ml: 2, px: 2 }} /> ); } HeaderAvatar.propTypes = { children: PropTypes.node, ref: PropTypes.any, others: PropTypes.any }; MobileSearch.propTypes = { value: PropTypes.string, setValue: PropTypes.func, popupState: PropTypes.any };