//
// PURPOSE:
// Create new QuizLPQuestions record
// REQ0006
//
// RULES:
// error handled by caller
// contain definition to collection only
//

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

import { pb } from '@/lib/pb';
import type { 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);
}
