import baseApi from "./baseApi";

const contactApi = baseApi.injectEndpoints({
    endpoints: (builder) => ({
        createContactUs: builder.mutation({
            query: (data) => ({
                url: "/contact-us/create",
                method: "POST",
                body: data,
            }),
            invalidatesTags: ["contactUs"],
        }),
    }),
});

export const { useCreateContactUsMutation } = contactApi;
