File size: 320 Bytes
bab2147
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"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
  }
}