39 lines
1.3 KiB
JavaScript
39 lines
1.3 KiB
JavaScript
import SearchD from '@/components/icons/SearchD'
|
|
import { Button, ButtonGroup, TextField } from '@mui/material'
|
|
|
|
function SmSearch({ placeholder }) {
|
|
return (
|
|
<ButtonGroup
|
|
variant="contained"
|
|
className="!bg-[#FFF] !w-2/3 !mt-[15px] !rounded-lg !overflow-hidden flex items-center !h-[64px] !shadow-[0px_1px_24.8px_0px_rgba(204,_204,_204,_0.18)]"
|
|
>
|
|
<TextField
|
|
variant="standard"
|
|
InputProps={{
|
|
disableUnderline: true
|
|
}}
|
|
sx={{
|
|
'& .MuiInputBase-root': {
|
|
height: '100%'
|
|
},
|
|
'& .MuiInput-root': {
|
|
borderBottom: 'none',
|
|
},
|
|
'& .MuiInputBase-input': {
|
|
color: '#7E7E7E'
|
|
}
|
|
}}
|
|
placeholder={placeholder}
|
|
dir='rtl'
|
|
className={`!shadow-none !w-full !px-5 !h-full bg-[#FAFAFA] !text-[14px] md:!text-[16px] !min-w-[50%] !rounded-0 !font-normal !text-[#6C757D]`}
|
|
/>
|
|
<Button
|
|
className="!rounded-[4px] !ml-1 !w-[56px] !h-[56px] !gap-2.5 !p-4"
|
|
>
|
|
<SearchD />
|
|
</Button>
|
|
</ButtonGroup>
|
|
)
|
|
}
|
|
|
|
export default SmSearch |