import recordAxiosInstance from "@/shared/services/recordAxiosInstance";
import Cookies from "js-cookie";
import { withHeaders } from "./withHeaders";

export const getRemarks = async (recordId: string): Promise<any> => {
  try {
    const { data } = await recordAxiosInstance.get(
      `outgoing-histories/record-outgoing-history/${recordId}`,
      {
        headers: withHeaders(),
      }
    );

    return data;
  } catch (error) {
    throw error;
  }
};
