import { Prisma, Report } from "@repo/db";
import { serverApi } from "_helpers/axios";

export const sendReportAPI = async (
	report:
		| (Prisma.Without<Prisma.ReportCreateInput, Prisma.ReportUncheckedCreateInput> &
				Prisma.ReportUncheckedCreateInput)
		| (Prisma.Without<Prisma.ReportUncheckedCreateInput, Prisma.ReportCreateInput> &
				Prisma.ReportCreateInput),
) => {
	const repsonse = await serverApi.put("/report", report);
	return repsonse.data as Report;
};
