export const addDocPerbaikan = async ({ noSanksi, ptId }, data) => {
	try {
		const res = await fetch(`http://localhost:5000/doc-perbaikan/add?noSanksi=${noSanksi}&ptId=${ptId}`, {
			method: "POST",
			body: data,
		});
		const result = await res.json();
		console.log(result);
		return result;
	} catch (error) {
		console.log("error", error);
		return false;
	}
};
