#
whycq
2025-03-03 8473d57f551e88176e1a7b9e8ea50648ce918f17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import React, { useState, useRef, useEffect, useMemo, useCallback } from "react";
import { Card, useTheme, List, CardContent, Input, InputAdornment, IconButton, TextField } from "@mui/material";
import { useForm } from 'react-hook-form';
import Warehouse from "./warehouse";
import { Filter, SearchInput } from 'react-admin';
 
 
export const MySearchInput = (props) => {
    const [searchTerm, setSearchTerm] = useState('');
    
    return (
        <>
            <TextField
                label="Search"
                value={searchTerm}
                onChange={(e) => setSearchTerm(e.target.value)}
            />
            {/* <Button onClick={handleSearch}>Search</Button> */}
        </>
    )
}