enzostvs's picture
enzostvs HF staff
share roast feature
bab2147
raw
history blame contribute delete
320 Bytes
"use server";
import prisma from "@/utils/prisma";
export interface ShareProps {
hf_user: string;
text: string;
}
export async function share(form: ShareProps) {
const quote = await prisma.quote.create({
data: {
hf_user: form.hf_user,
text: form.text
}
})
return {
data: quote
}
}