import { useMemo } from 'react';

import { useLokaliseTranslation } from 'src/utils/i18n';

import { createCertificateCreateSchema } from '../schemas';

/** Returns the Zod schema for the certificate creation form. */
const useCertificateCreateSchema = () => {
  const { t } = useLokaliseTranslation('validations');
  return useMemo(() => createCertificateCreateSchema(t), [t]);
};

export default useCertificateCreateSchema;
