import baseApi from "./baseApi";

const logoApi = baseApi.injectEndpoints({
    endpoints: (builder) => ({
        getLogo: builder.query({
            query: () => ({
                url: "/logo/get",
                method: "GET",
            }),
            providesTags: ["logo"],
        }),
        createLogo: builder.mutation({
            query: (data) => ({
                url: "/logo/create",
                method: "POST",
                body: data,
            }),
            invalidatesTags: ["logo"],
        }),
    }),
});

export const { useGetLogoQuery, useCreateLogoMutation } = logoApi;
