"use client" import { Coffee, X } from "lucide-react" import Link from "next/link" import type React from "react" import { FaGithub } from "react-icons/fa" interface QuotaLimitToastProps { type?: "request" | "token" used: number limit: number onDismiss: () => void } export function QuotaLimitToast({ type = "request", used, limit, onDismiss, }: QuotaLimitToastProps) { const isTokenLimit = type === "token" const formatNumber = (n: number) => n >= 1000 ? `${(n / 1000).toFixed(1)}k` : n.toString() const handleKeyDown = (e: React.KeyboardEvent) => { if (e.key === "Escape") { e.preventDefault() onDismiss() } } return (
Oops — you've reached the daily{" "} {isTokenLimit ? "token" : "API"} limit for this demo! As an indie developer covering all the API costs myself, I have to set these limits to keep things sustainable.{" "} Learn more →
Tip: You can use your own API key (click the Settings icon) or self-host the project to bypass these limits.
Your limit resets tomorrow. Thanks for understanding!