import { COL_QUIZ_LP_QUESTIONS } from '@/constants';
import type { RecordModel } from 'pocketbase';

import { pb } from '@/lib/pb';
import { CreateFormProps } from '@/components/dashboard/lp_questions/type';

// interface CreateForm {
//   // TODO: Add QuizLPQuestions fields
// }

export default function createQuizLPQuestion(data: CreateFormProps): Promise<RecordModel> {
  return pb.collection(COL_QUIZ_LP_QUESTIONS).create(data);
}
