import {createApi} from "@reduxjs/toolkit/query/react";
import {baseQueryWithAuth} from "./baseQuery.js";


export const lensTypesApi = createApi({
    reducerPath: 'lensTypesApi',
    baseQuery: baseQueryWithAuth,
    endpoints: (builder) => ({
        getLensTypes: builder.query({
            query: () => `/lens_types/`,
        }),
    }),
});

export const {useGetLensTypesQuery} = lensTypesApi;