import { baseAPI } from '@/shared/api/base-api'; import { TextItem } from '@/shared/types/text.types'; export const textControlApi = baseAPI.injectEndpoints({ endpoints: (builder) => ({ fetchText: builder.query({ query: () => '/text', }), }), }); export const { useFetchTextQuery } = textControlApi;