"use client";
import React, { useEffect, useState, useRef } from "react";
import {
Card,
CardContent,
CardFooter,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import { CheckIcon, EllipsisVerticalIcon } from "@heroicons/react/20/solid";
import {
Tooltip,
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from "@/components/ui/tooltip";
import { Button } from "@/components/ui/button";
import { PricingPageProps, PricingTierProps } from "@/types/pricing";
import { useCheckout } from "@/hooks/useCheckout";
import { PRICING_TIERS } from "@/utils/constants";
import {
DropdownMenu,
DropdownMenuTrigger,
DropdownMenuContent,
DropdownMenuItem,
} from "./ui/dropdown-menu";
import { Info } from "lucide-react";
import Footer from "./footer";
import Link from "next/link";
import { useDownload } from "@/hooks/useDownload";
import DownloadFeedbackForm from "./ui/download-feedback-form";
import { useReleases } from "@/hooks/useReleases";
import { ReleaseInfo } from "@/types/releaseTypes";
import CTA from "./cta";
import VersionInfo from "./ui/version-info";
interface ExtendedPricingTierProps extends PricingTierProps {
disabled?: boolean;
windowsRelease: ReleaseInfo;
macRelease: ReleaseInfo;
linuxRelease: ReleaseInfo;
}
const PricingTier: React.FC
{title === "Enterprise"
? "Purchase bulk at a discount"
: `$${price}`}
{title === "Enterprise" ? "" : `${priceUnit}`}
{(title === "Enterprise" || "Maker") && (
EARLY BIRD
)}
{title === "Intern" || title === "Maker" ? description : ""}
Free
Download with a free trial
Thanks for trying out PearAI! Your download should have
started, if it hasn't, click{" "}
here
.
PRICING
Current built-in models for this plan include (but not limited to)
{features.map((feature, index) => (
)}
Make your next project today.
Your PearAI Credits usage depends on the price of the underlying
LLM, and your prompt's input and output sizes.
If you happen to run out of credits (which is unlikely), you can switch to a{" "} pay-as-you-go extra credit plan
No need to configure and manage different API's and tools, PearAI will work out of the box.