import { createApi } from "@reduxjs/toolkit/query/react"; import { baseQueryWithReauth } from "./apiSlice"; export const forgetPassword = createApi({ reducerPath: "aboutUs", baseQuery: baseQueryWithReauth, // Use enhanced baseQuery with error handling endpoints: (builder) => ({ // 🔹 GET: Fetch all posts getAboutUs: builder.query({ query: () => "/send-otp", }), }), }); export const { useGetAboutUsQuery, } = forgetPassword; // Define Post type export type Post = { id: number; title: string; body: string; }; export type AboutUs = { id: number; language_master_xid: number; content: string; is_active: boolean; };