// Settings.tsx import { useAppDispatch, useAppSelector } from "@/app/store"; import { setApiKey } from "@/app/store/slices/authSlice"; const Settings = () => { const dispatch = useAppDispatch(); const apiKey = useAppSelector((state) => state.auth.apiKey); return (
dispatch(setApiKey(event.target.value))} className="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" />
); }; export default Settings;