File size: 201 Bytes
750887b
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import { redirect } from "react-router-dom";
import { deleteContact } from "../contacts";

export async function action({ params }) {
  await deleteContact(params.contactId);
  return redirect("/");
}