import React from "react"; import { Link } from "react-router-dom"; import { useDispatch, useSelector } from "react-redux"; //Import logout from authSlice function Navigation() { // user from redux store const { user } = useSelector(state => state.auth); //22. Import useDispatch and useSelector from react-redux to interact with the Redux store, and the logout action from your auth slice. // logout function //22. Implement a logoutHandler function that dispatches the logout action and removes the user's details from localStorage, effectively logging the user out. return (