export const unfollowUser = async (userId: string) => {
    try {
        const data = await fetch(`/api/users/follow`, {
            method: "DELETE",
            body: JSON.stringify({ userId }),
        }).then((result) => result.json())

        return data
    } catch (error: any) {
        return error.message
    }
}