Skip to content

Instantly share code, notes, and snippets.

View career-tokens's full-sized avatar

Mainak Mukherjee career-tokens

View GitHub Profile
"use client";
import React, { useEffect, useState } from "react";
import { Skeleton } from "@/components/ui/skeleton";
import axios from "axios";
const Offerings = ({ user }) => {
const [limits, setLimits] = useState<any>({});
const [offeringsElem, setOfferingsElem] = useState([]);
"use client";
import { ApiResponse } from "@/types/ApiResponse";
import { zodResolver } from "@hookform/resolvers/zod";
import Link from "next/link";
import { useEffect, useState } from "react";
import { useForm } from "react-hook-form";
import { useDebounceCallback } from "usehooks-ts";
import * as z from "zod";
import dbConnect from "@/lib/dbConnect";
import UserModel from "@/model/User";
import bcrypt from "bcryptjs";
import { sendVerificationEmail } from "@/helpers/sendVerificationEmail";
export async function POST(request:Request) {
//nextjs is edge timed so we will need to connect the database first
await dbConnect();
try {
import { Tailwind } from "@onedoc/react-print";
import { MdEmail, MdLocationOn, MdOutlineMail } from "react-icons/md";
import { FaExternalLinkAlt, FaJava, FaLinkedin } from "react-icons/fa";
import { Mulish } from "next/font/google";
const mulish = Mulish({ subsets: ['latin'] })
export const OneDocComponent2 = () => { return (
<Tailwind>
<div className={`main flex flex-col ${mulish.className}`}>