diff --git a/Dashboard.jsx b/Dashboard.jsx new file mode 100644 index 0000000..60b69d2 --- /dev/null +++ b/Dashboard.jsx @@ -0,0 +1,39 @@ +import Userbar from "./Userbar" +import imgPath from "../assets/user-dp.jpg" +import { useState } from "react"; + +function Dashboard(){ + const [searchText,setSearchText]=useState(''); + const users=["Ajeet","Ajay","Karn","Priya","Neha"]; + + const searchResult=users.filter(e=>e.toLowerCase().includes(searchText.toLowerCase())); + return ( +