text
stringlengths
3
8.33k
repo
stringclasses
52 values
path
stringlengths
6
141
language
stringclasses
35 values
sha
stringlengths
64
64
chunk_index
int32
0
273
n_tokens
int32
1
896
15.0861 13.6432C15.7916 13.2327 16.4885 12.8092 17.1769 12.3727C17.1826 12.3694 17.2268 12.3621 17.1921 12.3879C16.5905 12.8389 15.9774 13.2745 15.3529 13.6948C15.2118 13.7897 15.1129 13.8702 15.0562 13.9363C14.891 14.1289 14.5539 14.61 15.0282 14.733C15.5751 14.8745 16.5412 14.457 17.0397 14.2275C17.4891 14.0207 17.91...
hacknation
www/components/icons.tsx
TypeScript
39d341f40b53adf7eb331148410482cf4a322b53015e66df5ba31ceb68c17813
21
896
3953 11.9776 38.5416 11.9545 38.6865 11.9174C38.6968 11.9146 38.7059 11.9086 38.7122 11.9003C38.7186 11.8921 38.7219 11.882 38.7216 11.8717C38.7193 11.7834 38.1676 11.6695 37.9373 11.622C37.889 11.612 37.8548 11.605 37.8429 11.6017C36.9206 11.3479 35.9675 11.0175 34.9835 10.6105C33.3147 9.92014 31.7233 9.21553 30.2369 ...
hacknation
www/components/icons.tsx
TypeScript
e6b4fe55c15cd2881cfe22964a5af96543d92b363e2e4036bf69150feb0a870e
22
896
5701 33.5611 22.5561 33.516 22.542 33.4706L22.5419 33.4705C22.478 33.2647 22.4119 33.0515 22.4212 32.8458C22.4667 31.8631 23.2106 31.1761 23.8923 30.5466L23.8977 30.5417C24.3421 30.1311 24.7114 29.4154 24.4147 28.8343C24.2678 28.5464 24.0542 28.2661 23.7738 27.9933C23.6245 27.8483 23.4709 27.704 23.3163 27.5588L23.3158...
hacknation
www/components/icons.tsx
TypeScript
2496b1ef18d7d388c95e0b1b4c0a45c37476e71b116199226e03e7f6c3c37e15
23
896
30.555L23.1459 28.4448C23.1461 28.4383 23.1449 28.4319 23.1423 28.4259C23.1398 28.42 23.136 28.4146 23.1312 28.4103L22.4286 27.7665C22.4197 27.7583 22.4079 27.7537 22.3955 27.7539C22.3832 27.7541 22.3714 27.7589 22.3626 27.7674L22.3463 27.7833C21.9152 28.2035 21.2952 28.8078 21.3931 29.4485C21.4915 30.0925 21.9887 30.5...
hacknation
www/components/icons.tsx
TypeScript
95bad353f67d4d7016138c284f95e0d680f227ba19b63f37e7dd393c216b2b59
24
896
.9935ZM27.0008 33.8555L28.0979 30.8126H28.8694L29.9665 33.8555H29.2894L29.0665 33.2083H27.8965L27.6736 33.8555H27.0008ZM28.0808 32.6726H28.8865L28.4836 31.4983L28.0808 32.6726ZM30.2541 33.8555V30.8126H30.9741L32.1827 32.9126V30.8126H32.8341V33.8555H32.1055L30.9055 31.8283V33.8555H30.2541ZM33.9856 33.8555V31.3612H33.077...
hacknation
www/components/icons.tsx
TypeScript
6638642e941c2904c5323236b360c0685e4f2b269335bb1876f1728f8d37a4db
25
896
21.5157 11.2976C21.0295 11.2303 20.8074 10.6556 20.7551 10.2381C20.7421 10.1328 20.7309 10.0254 20.7197 9.91727C20.6412 9.1606 20.5585 8.36393 19.7843 7.94825C18.9876 7.52014 17.6982 7.77544 16.9177 8.14733C16.6867 8.25724 16.4617 8.36722 16.2377 8.47668C15.6119 8.78252 14.9945 9.08425 14.2795 9.36898C14.2774 9.3698 14...
hacknation
www/components/icons.tsx
TypeScript
9660025945519ef9ccfd7f409102b075ddb91496396edcf27a413f792ab1f1eb
26
896
5838 7.79986 25.3327 8.98235 25.2781 10.204C25.2737 10.3063 25.243 10.4341 25.186 10.5874C24.9148 11.3186 24.5549 11.3354 23.952 11.3634ZM23.9444 8.72196C23.9444 9.22639 23.5231 9.63532 23.0035 9.63532C22.4838 9.63532 22.0625 9.22639 22.0625 8.72196C22.0625 8.21752 22.4838 7.80859 23.0035 7.80859C23.5231 7.80859 23.944...
hacknation
www/components/icons.tsx
TypeScript
5de377735e4cc6b3fde54dd67a6f8dabbd77f9a2631aad50ab117f21ede7a697
27
896
0318 16.417 22.037 16.4094 22.0396 16.4009C22.0422 16.3924 22.0422 16.3833 22.0395 16.3748C21.7775 15.5076 20.282 15.8191 19.877 16.3426C19.8384 16.3924 19.82 16.4381 19.802 16.483C19.7768 16.5457 19.7523 16.6067 19.6743 16.6744C19.3616 16.9457 19.1643 17.2791 19.0823 17.6748C18.9133 18.4924 19.8647 19.2108 20.5056 19....
hacknation
www/components/icons.tsx
TypeScript
4d495582dd2861e214d97671171fe60b38bc2a0f26b255eb19eefe46a0129666
28
896
31.4582 23.187 31.4622 23.182 31.4674C23.044 31.6112 22.9269 31.7702 22.8307 31.9444C22.7981 32.0034 22.7823 32.0691 22.7832 32.1416C22.7937 32.7539 22.803 33.3662 22.8112 33.9785C22.8125 34.0694 22.8185 34.1424 22.8293 34.1974C22.8407 34.2554 22.8557 34.3124 22.8744 34.3683C22.9006 34.4454 22.925 34.4448 22.9475 34.36...
hacknation
www/components/icons.tsx
TypeScript
358ac394b8f70cea384a7c52b083efa366f26f714ef04d9b7bda8476bf331bff
29
896
.3021 32.7655 22.0935 32.8055 21.8535 32.8055H21.2878V33.8555H20.6363V30.8126ZM21.8149 32.2569C21.9892 32.2569 22.1221 32.2183 22.2135 32.1412C22.3078 32.064 22.3549 31.9526 22.3549 31.8069C22.3549 31.6612 22.3078 31.5512 22.2135 31.4769C22.1221 31.3998 21.9892 31.3612 21.8149 31.3612H21.2878V32.2569H21.8149ZM23.5158 3...
hacknation
www/components/icons.tsx
TypeScript
5a02484684450ed6ebc4c08fe73d5ebc2f6a1db419c431f5772fd6023fdc53f4
30
896
L36.1956 14.6975L34.4038 15.9994L35.0882 13.8929L33.2963 12.5911L35.5112 12.5911L36.1956 10.4846Z" fill="url(#paint6_linear_1_4914)" /> <path d="M10.4755 27.8336L9.79104 25.7272L9.1066 27.8336H6.89172L8.6836 29.1355L7.99916 31.242L9.79104 29.9401L11.5829 31.242L10.8985 29.1355L12.690...
hacknation
www/components/icons.tsx
TypeScript
49609b7ca7c2cbd07c4ef0a8c1d970f263d1611415ac144bc985dbbc14b300bc
31
896
" y2="5.36433" gradientUnits="userSpaceOnUse" > <stop offset="0.188554" stopColor="#364153" stopOpacity="0" /> <stop offset="0.526459" stopColor="#364153" stopOpacity="0.7" /> </linearGradient> <linearGradient id="paint2_linear_1_4914" ...
hacknation
www/components/icons.tsx
TypeScript
b22ab3b96f66e7a04fc590230837fb021e1f514d6156932ced1fa49c0b26fa8c
32
896
" x1="15.8864" y1="51.1315" x2="29.5116" y2="5.36433" gradientUnits="userSpaceOnUse" > <stop offset="0.188554" stopColor="#364153" stopOpacity="0" /> <stop offset="0.526459" stopColor="#364153" stopOpacity="0.7" /> </linearGradient> ...
hacknation
www/components/icons.tsx
TypeScript
1334c58e9f47c05cc817e8032acec8adcfc7d4a8343bc3e3f3709d8a7d2cb63a
33
896
L7.99916 15.9994L9.79103 14.6975L11.5829 15.9994L10.8985 13.8929L12.6903 12.591H10.4755Z" fill="url(#paint11_linear_1_2046)" /> <path d="M16.0565 7.01202L15.372 4.90555L14.6876 7.01202H12.4727L14.2646 8.3139L13.5802 10.4204L15.372 9.1185L17.1639 10.4204L16.4795 8.3139L18.2714 7.01203...
hacknation
www/components/icons.tsx
TypeScript
6793951133889fa5823a2259505ff6e8aa26fdba54e4e7cadfd21d957bfcab11
34
896
"paint2_linear_1_2046" x1="15.8864" y1="51.1315" x2="29.5116" y2="5.36433" gradientUnits="userSpaceOnUse" > <stop offset="0.188554" stopColor="#FAFAFA" stopOpacity="0" /> <stop offset="0.526459" stopColor="#FAFAFA" stopOpacity="0.7" /> ...
hacknation
www/components/icons.tsx
TypeScript
43e6b1f66d4facc8bd940b128a993aa790ff7c9fe3e4f121c6fdb38e594d9892
35
896
stopOpacity="0.7" /> </linearGradient> </defs> </svg> ), vercel: () => ( <svg width="52" height="60" viewBox="0 0 52 60" fill="none" xmlns="http://www.w3.org/2000/svg" > <g> <path d="M5 22C5 10.402 14.402 1 26 1C37.598 1 47 10.402 47 22...
hacknation
www/components/icons.tsx
TypeScript
0ddbe0b1eed4df34a0c6265483710728927334e7996eda1b7c3b8f47aaea82ff
36
896
1089 26.5388 18.1944 26.6322 18.2501 26.7434L18.8411 27.9246C18.8875 28.0176 18.9117 28.1201 18.9117 28.224C18.9117 28.328 18.8875 28.4305 18.8411 28.5235L18.2508 29.7047Z" fill="#1D4AFF" /> <path d="M10.9531 27.1607C10.9531 26.5644 11.6747 26.2649 12.0968 26.687L15.1673 29.7575C15.5...
hacknation
www/components/icons.tsx
TypeScript
ef0cc7bddff356a69ee330cb5938c43ab8af6c1855b6165b6065022547496451
37
896
0066da" /> <path d="m43.65 25-13.75-23.8c-1.35.8-2.5 1.9-3.3 3.3l-25.4 44a9.06 9.06 0 0 0 -1.2 4.5h27.5z" fill="#00ac47" /> <path d="m73.55 76.8c1.35-.8 2.5-1.9 3.3-3.3l1.6-2.75 7.65-13.25c.8-1.4 1.2-2.95 1.2-4.5h-27.502l5.852 11.5z" fill="#ea4335" /> ...
hacknation
www/components/icons.tsx
TypeScript
c89544fe60965890375aaa1e3f94e12b69b3e1c9e6ce9c0182b75f1c5b85641e
38
896
13.8679 15.3939C13.8907 12.4321 16.3064 9.88977 19.2617 9.83918C23.7709 9.762 28.2832 9.77292 32.793 9.83779C35.1105 9.87113 36.753 11.063 37.678 13.2664ZM21.0218 13.8121C20.2809 13.2306 19.4728 13.0218 18.6063 13.4803C17.7302 13.9439 17.3212 14.6789 17.3266 15.7004C17.3488 19.9172 17.3308 24.134 17.3447 28.3508C17.346...
hacknation
www/components/icons.tsx
TypeScript
97cc5314507a4387112c347f718c229d05d74a0c2f6bc7defe4c2c13e859a959
39
896
org/2000/svg" > <g> <path d="M5 22C5 10.402 14.402 1 26 1C37.598 1 47 10.402 47 22C47 33.598 37.598 43 26 43C14.402 43 5 33.598 5 22Z" fill="white" /> <g clipPath="url(#clip0_1_4143)"> <path d="M26 34C25.5426 30.9809 24.131 28.1874 21.9718 26.0...
hacknation
www/components/icons.tsx
TypeScript
da6d5083057904f4f6cd0637eac7acb8fa21b539ddc209d2977bd12f7332a607
40
896
="52" height="60" viewBox="0 0 52 60" fill="none" xmlns="http://www.w3.org/2000/svg" > <g> <path d="M5 22C5 10.402 14.402 1 26 1C37.598 1 47 10.402 47 22C47 33.598 37.598 43 26 43C14.402 43 5 33.598 5 22Z" fill="#0086FF" /> <path d=...
hacknation
www/components/icons.tsx
TypeScript
87a0a1d072959b3d0eba13900bb5cbc03e74ead70d20429ea52394c544ff5d32
41
896
<feOffset dy="3" /> <feGaussianBlur stdDeviation="1.5" /> <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0" /> <feBlend mode="normal" in2="effect1_dropShadow_1_4134" result="effect2_dropSha...
hacknation
www/components/icons.tsx
TypeScript
252d3d31c8fda577c41edada0fb9691a84b278c0d1d86b802e65c665dced31bf
42
896
" fill="#FF7262" /> <path d="M35.875 21.9999C35.875 24.7599 33.635 26.9999 30.875 26.9999C28.115 26.9999 25.875 24.7599 25.875 21.9999C25.875 19.2399 28.115 16.9999 30.875 16.9999C33.635 16.9999 35.875 19.2399 35.875 21.9999Z" fill="#1ABCFE" ...
hacknation
www/components/icons.tsx
TypeScript
08e92cc587f8c6747563390b34a7234e4e92d05d29c8612d7ac3eac2db9e692a
43
81
"use client"; import { useEffect, useState } from "react"; export function InstallPrompt() { const [isIOS, setIsIOS] = useState(false); const [isStandalone, setIsStandalone] = useState(false); useEffect(() => { setIsIOS( /iPad|iPhone|iPod/.test(navigator.userAgent) && !("MSStream" in window),...
hacknation
www/components/install-prompt.tsx
TypeScript
4c0432fe0e222ff3a179319eb11935b3adc34bed410dc632d7b88416a5e21fda
0
253
"use client"; import type { UseChatHelpers } from "@ai-sdk/react"; import { useState, useMemo } from "react"; import type { Vote } from "@/lib/db/schema"; import type { ChatMessage } from "@/lib/types"; import { cn, sanitizeText } from "@/lib/utils"; import { useDataStream } from "./data-stream-provider"; import { Mess...
hacknation
www/components/message.tsx
TypeScript
515b7391881aebb4208d4d15a7fea3c3380cbdbb1d11644996865e6e861cf633
0
896
= "file") ?? []; useDataStream(); return ( <div className="group/message fade-in w-full animate-in duration-200" data-role={message.role} data-testid={`message-${message.role}`} > <div className={cn("flex w-full min-w-0 items-start gap-2 md:gap-3", { "justify-end"...
hacknation
www/components/message.tsx
TypeScript
a0bafa303711982ba3b8e0976e1d58fe13b07ebca339876a49c4598c5094dc02
1
896
mode === "edit") { return ( <div className="flex w-full flex-row items-start gap-3" key={key} > <div className="size-8" /> <div className="min-w-0 flex-1"> <MessageEd...
hacknation
www/components/message.tsx
TypeScript
c2ca5b3335b04f614ef2aa04b42c11ca1da2d19378294bb1dba0972406383d61
2
663
import type { UseChatHelpers } from "@ai-sdk/react"; import { ArrowDownIcon } from "lucide-react"; import { useMessages } from "@/hooks/use-messages"; import type { Vote } from "@/lib/db/schema"; import type { ChatMessage } from "@/lib/types"; import { useDataStream } from "./data-stream-provider"; import { Greeting } ...
hacknation
www/components/messages.tsx
TypeScript
3b96267fa60b83130921bd5fb7c8f5dbd23280a0ff79e74d69eef7ca575562fc
0
728
"use client"; import type { UseChatHelpers } from "@ai-sdk/react"; import type { UIMessage } from "ai"; import equal from "fast-deep-equal"; import { CheckIcon } from "lucide-react"; import { type ChangeEvent, type Dispatch, memo, type SetStateAction, useCallback, useEffect, useRef, useState, } from "r...
hacknation
www/components/multimodal-input.tsx
TypeScript
203a944e20d60e7a7b187c07365ce035b605911ab12b04ccd64d42e685cbe2d9
0
896
hooks/exhaustive-deps }, [ resetHeight, localStorageInput, messages.length, setInput, setLocalStorageInput, ]); useEffect(() => { setLocalStorageInput(input); }, [input, setLocalStorageInput]); const handleInput = (event: React.ChangeEvent<HTMLTextAreaElement>) => { setInput(even...
hacknation
www/components/multimodal-input.tsx
TypeScript
e04a75be154cd3744e14a6540fa6fda3f37b327c75a3a4d7d7b9a65f201e52b8
1
896
=> item.getAsFile()) .filter((file): file is File => file !== null) .map((file) => uploadFile(file)); const uploadedAttachments = await Promise.all(uploadPromises); const successfullyUploadedAttachments = uploadedAttachments.filter( (attachment) => attachment !...
hacknation
www/components/multimodal-input.tsx
TypeScript
dd40e66ad9b9b5380fee35b6e2faed14ffe4e07f776a80ac1f758229cc110a05
2
896
-0! p-0 shadow-none dark:border-0 dark:border-transparent!"> <PromptInputTools className="gap-0 sm:gap-0.5"> <AttachmentsButton fileInputRef={fileInputRef} selectedModelId={selectedModelId} status={status} /> <ModelSelectorCompact ...
hacknation
www/components/multimodal-input.tsx
TypeScript
dbec1748855d91fa1bf5bd7ce34a2993b9c469f7639b65fcda9c93d2dc3e9639
3
896
onSelect={() => { onModelChange?.(model.id); setCookie("chat-model", model.id); setOpen(false); }} value={model.id} > <ModelSelectorLogo provider={logoProvider} /> ...
hacknation
www/components/multimodal-input.tsx
TypeScript
9e0ef3fb9b5ab6d01b35201f184621537ed24b62f0336019b18c3db9c5d51d99
4
469
"use client"; import { siteConfig } from "@/lib/config"; import { motion } from "motion/react"; import React, { useRef, useState } from "react"; interface NavItem { name: string; href: string; } const navs: NavItem[] = siteConfig.nav.links; export function NavMenu() { const ref = useRef<HTMLUListElement>(null...
hacknation
www/components/nav-menu.tsx
TypeScript
94a1452ecbf06df1d650fac2443ce52d7a5828b5e733b81772683627b9212c09
0
896
href.substring(1) ? "text-primary" : "text-primary/60 hover:text-primary" } tracking-tight`} > <a href={item.href} onClick={(e) => handleClick(e, item)}> {item.name} </a> </li> ))} {isReady && ( ...
hacknation
www/components/nav-menu.tsx
TypeScript
92f35c2521ada3dd278c8f0c5aaec5aec826c596185a317fffdc5ff4f2c008c3
1
148
"use client"; import { useEffect, useState } from "react"; import { sendNotification, subscribeUser, unsubscribeUser, } from "@/app/actions"; function urlBase64ToUint8Array(base64String: string) { const padding = "=".repeat((4 - (base64String.length % 4)) % 4); const base64 = (base64String + padding) ....
hacknation
www/components/push-notification-manager.tsx
TypeScript
e7f01adbb5c276e92e3691293b890ae44a09dde540d8c88713d4c5138057f8f5
0
611
import { Icons } from "@/components/icons"; import { OrbitingCircles } from "@/components/ui/orbiting-circle"; export function SecondBentoAnimation() { return ( <div className="relative flex h-full w-full items-center justify-center overflow-hidden"> <div className="pointer-events-none absolute bottom-0 le...
hacknation
www/components/second-bento-animation.tsx
TypeScript
35f0812a6345e7de958f6292de5439ac456aef2e6137ad66b960517d6254398b
0
445
"use client"; import { isToday, isYesterday, subMonths, subWeeks } from "date-fns"; import { motion } from "framer-motion"; import { usePathname, useRouter } from "next/navigation"; import type { User } from "next-auth"; import { useState } from "react"; import { toast } from "sonner"; import useSWRInfinite from "swr/...
hacknation
www/components/sidebar-history.tsx
TypeScript
15452c69e19f0fbed18c31b0a3a2a218e951958032cda4cc384a3746eab3b5ac
0
896
chatHistories.map((chatHistory) => ({ ...chatHistory, chats: chatHistory.chats.filter( (chat) => chat.id !== chatToDelete ), })); } }); if (isCurrentChat) { router.replace("/chat"); router.refresh(); ...
hacknation
www/components/sidebar-history.tsx
TypeScript
a9fa1f5454da45e16a8794b8f9de843ecbbaa2150d66512330dbed22b65b8b4e
1
896
"use client"; import { ChevronUp } from "lucide-react"; import Image from "next/image"; import { useRouter } from "next/navigation"; import type { User } from "next-auth"; import { signOut, useSession } from "next-auth/react"; import { useTheme } from "next-themes"; import { DropdownMenu, DropdownMenuContent, Dr...
hacknation
www/components/sidebar-user-nav.tsx
TypeScript
5f0ac67eea09705e38d957523960c16df33a5d80ac1fae0038735aab57048442
0
826
"use client"; import type { UseChatHelpers } from "@ai-sdk/react"; import { motion } from "framer-motion"; import { memo } from "react"; import type { ChatMessage } from "@/lib/types"; import { Suggestion } from "./elements/suggestion"; import type { VisibilityType } from "./visibility-selector"; type SuggestedAction...
hacknation
www/components/suggested-actions.tsx
TypeScript
b8600f802e46e7d1bebd91235251d0cb6c653169dd7eeaa96b69aad3e81cfadd
0
492
/* eslint-disable @next/next/no-img-element */ import { Marquee } from "@/components/ui/marquee"; import { cn } from "@/lib/utils"; export interface TestimonialCardProps extends React.HTMLAttributes<HTMLDivElement> { name: string; role: string; img?: string; description: React.ReactNode; className?: string...
hacknation
www/components/testimonial-scroll.tsx
TypeScript
43988432a290fb635734443bb018437688e6ba16cbc312d0460cefb08b872932
0
788
"use client"; import * as React from "react"; import { ThemeProvider as NextThemesProvider } from "next-themes"; export function ThemeProvider({ children, ...props }: React.ComponentProps<typeof NextThemesProvider>) { return <NextThemesProvider {...props}>{children}</NextThemesProvider>; }
hacknation
www/components/theme-provider.tsx
TypeScript
03dbb33d93ab5483aa7987fc9d6a39d5cdfa60d2ea361095276235878e83f142
0
68
"use client"; import * as React from "react"; import { Moon, Sun } from "lucide-react"; import { useTheme } from "next-themes"; import { Button } from "@/components/ui/button"; export function ThemeToggle() { const { theme, setTheme } = useTheme(); return ( <Button variant="outline" size="icon" ...
hacknation
www/components/theme-toggle.tsx
TypeScript
a26f4c87539cd2a9ae87d26f7b0b493d0f8cd7b63a41be536d2964f3287a563e
0
236
"use client"; import { colorWithOpacity, getRGBA } from "@/lib/utils"; import NumberFlow from "@number-flow/react"; import { motion, useInView } from "motion/react"; import { CSSProperties, useCallback, useEffect, useRef, useState } from "react"; interface LineChartProps { data: number[]; height?: number; width...
hacknation
www/components/third-bento-animation.tsx
TypeScript
3408704472f255784aabf0e1a1f269e401ef16e957898abd01b2ed56b7aa67d1
0
896
> </defs> {/* Animated Area Fill */} <motion.path initial={{ opacity: 0, scale: 0.95 }} animate={{ opacity: shouldAnimate ? 1 : 0, scale: shouldAnimate ? 1 : 0.95, }} transition={{ duration: 0.8, ease: "easeOut", delay:...
hacknation
www/components/third-bento-animation.tsx
TypeScript
dd31f8b17ebba9813a8d6b4dacfd01c709fce2970d666643bee9fe679bff6ec7
1
896
105,0.08),0px_0px_0px_1.1px_rgba(18,43,105,0.08)]`} > <NumberFlow value={currentValue} className="font-mono" transformTiming={{ duration: 700, easing: "ease-out", }} format={{ useGrouping: true, minimumIntegerDigits: 1, }}...
hacknation
www/components/third-bento-animation.tsx
TypeScript
2ed4d554d345879a1e497bbfbdcdd2d0f2d41bfc38f9ae96873289c7961f0d8f
2
472
"use client"; import type { Tool } from "ai"; import { BotIcon } from "lucide-react"; import type { ComponentProps } from "react"; import { memo } from "react"; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from "@/components/ui/accordion"; import { Badge } from "@/components/ui/badg...
hacknation
www/components/ai-elements/agent.tsx
TypeScript
88ec3d940f446f116224a6051c8bdb1b1aeaa64c987c65e20082e648abd5b8d1
0
896
} language="json" /> </div> </AccordionContent> </AccordionItem> ); } ); export type AgentOutputProps = ComponentProps<"div"> & { schema: string; }; export const AgentOutput = memo( ({ className, schema, ...props }: AgentOutputProps) => ( <div className={cn("space-y-2", className...
hacknation
www/components/ai-elements/agent.tsx
TypeScript
cf0661d98d2f3faa83623931bf396ff94e05f9dbf283980d5334c07073055ff9
1
211
"use client"; import { type LucideIcon, XIcon } from "lucide-react"; import type { ComponentProps, HTMLAttributes } from "react"; import { Button } from "@/components/ui/button"; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "@/components/ui/tooltip"; import { cn } from "@/lib/utils...
hacknation
www/components/ai-elements/artifact.tsx
TypeScript
cb8ad35ad374a854f0c3e51700d0b2aa7d407b1a1dc0375b0d3bff25bf609522
0
813
import { Background, ReactFlow, type ReactFlowProps } from "@xyflow/react"; import type { ReactNode } from "react"; import "@xyflow/react/dist/style.css"; type CanvasProps = ReactFlowProps & { children?: ReactNode; }; export const Canvas = ({ children, ...props }: CanvasProps) => ( <ReactFlow deleteKeyCode={[...
hacknation
www/components/ai-elements/canvas.tsx
TypeScript
44ee4eb9fd199120da84a6efe5bdbb09ad32203123ce464f0c821f1d57ac19b9
0
135
"use client"; import { useControllableState } from "@radix-ui/react-use-controllable-state"; import { BrainIcon, ChevronDownIcon, DotIcon, type LucideIcon, } from "lucide-react"; import type { ComponentProps, ReactNode } from "react"; import { createContext, memo, useContext, useMemo } from "react"; import { B...
hacknation
www/components/ai-elements/chain-of-thought.tsx
TypeScript
dde2f22e95606c4b107d732fc45ad8bc6fdc2e1783728761c31747382fefe54f
0
896
muted-foreground text-xs">{description}</div> )} {children} </div> </div> ); } ); export type ChainOfThoughtSearchResultsProps = ComponentProps<"div">; export const ChainOfThoughtSearchResults = memo( ({ className, ...props }: ChainOfThoughtSearchResultsProps) => ( <div ...
hacknation
www/components/ai-elements/chain-of-thought.tsx
TypeScript
c4d4cfca30ded4c6e618cd0556903dc592dc738b257f3eef6ee85fb6b51b1fc4
1
562
"use client"; import { BookmarkIcon, type LucideProps } from "lucide-react"; import type { ComponentProps, HTMLAttributes } from "react"; import { Button } from "@/components/ui/button"; import { Separator } from "@/components/ui/separator"; import { Tooltip, TooltipContent, TooltipTrigger, } from "@/components/...
hacknation
www/components/ai-elements/checkpoint.tsx
TypeScript
5a7ff510d4b63b0f2f8b35c7e6fd6c6aadd7de5d4d0178e85be42099db651e12
0
388
"use client"; import type { ToolUIPart } from "ai"; import { type ComponentProps, createContext, type ReactNode, useContext, } from "react"; import { Alert, AlertDescription } from "@/components/ui/alert"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; type ToolUIPartApprov...
hacknation
www/components/ai-elements/confirmation.tsx
TypeScript
990d4775cac2420479828427dc0ff236f97fc67bbf99fe7c535411b45471e11d
0
855
import type { ConnectionLineComponent } from "@xyflow/react"; const HALF = 0.5; export const Connection: ConnectionLineComponent = ({ fromX, fromY, toX, toY, }) => ( <g> <path className="animated" d={`M${fromX},${fromY} C ${fromX + (toX - fromX) * HALF},${fromY} ${fromX + (toX - fromX) * HAL...
hacknation
www/components/ai-elements/connection.tsx
TypeScript
3da80a551da8a7eb4949a0b64b5329af463037dc15e6945e60ae66dcd903e71f
0
181
"use client"; import { Controls as ControlsPrimitive } from "@xyflow/react"; import type { ComponentProps } from "react"; import { cn } from "@/lib/utils"; export type ControlsProps = ComponentProps<typeof ControlsPrimitive>; export const Controls = ({ className, ...props }: ControlsProps) => ( <ControlsPrimitive ...
hacknation
www/components/ai-elements/controls.tsx
TypeScript
59119a5e2a7588539e29a0c8e45d5f0bee7ddee07bad6825a49ecee47293fb75
0
158
"use client"; import { ArrowDownIcon } from "lucide-react"; import type { ComponentProps } from "react"; import { useCallback } from "react"; import { StickToBottom, useStickToBottomContext } from "use-stick-to-bottom"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; export type Con...
hacknation
www/components/ai-elements/conversation.tsx
TypeScript
eb3af6b3593e5e830d9f261942d21c3484fe825a90eb3dc3abd47584cfd1241e
0
595
import type { Experimental_GeneratedImage } from "ai"; import { cn } from "@/lib/utils"; export type ImageProps = Experimental_GeneratedImage & { className?: string; alt?: string; }; export const Image = ({ base64, uint8Array, mediaType, ...props }: ImageProps) => ( // biome-ignore lint/performance/noIm...
hacknation
www/components/ai-elements/image.tsx
TypeScript
a9d0e7efe49c5beb5778dcbcee0ea7fa5047f94863ca7101598433a82e3e9cb5
0
147
of {totalBranches} </ButtonGroupText> ); }; export type MessageResponseProps = ComponentProps<typeof Streamdown>; export const MessageResponse = memo( ({ className, ...props }: MessageResponseProps) => ( <Streamdown className={cn( "size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0", ...
hacknation
www/components/ai-elements/message.tsx
TypeScript
815b3336a4855be539ed4da68d4e3333c1508f7f7f7d5933a206998ed553ea5e
2
846
import Image from "next/image"; import type { ComponentProps, ReactNode } from "react"; import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, } from "@/components/ui/command"; import { Dialog, DialogContent, Dialog...
hacknation
www/components/ai-elements/model-selector.tsx
TypeScript
effa361e6598a977325cb50f675a59dd14d1d299977690b57b37a3dc9fc63c14
0
896
| "amazon-bedrock" | "cerebras" | (string & {}); }; export const ModelSelectorLogo = ({ provider, className, }: ModelSelectorLogoProps) => ( <Image alt={`${provider} logo`} className={cn("size-3 dark:invert", className)} height={12} src={`https://models.dev/logos/${provider}.svg`} uno...
hacknation
www/components/ai-elements/model-selector.tsx
TypeScript
7c7b6f5c7c0d51a4e2f906940d577e19e54e3b225884e0b1ce7f5eb2724e6679
1
277
import { Handle, Position } from "@xyflow/react"; import type { ComponentProps } from "react"; import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/components/ui/card"; import { cn } from "@/lib/utils"; export type NodeProps = ComponentProps<typeof Card> &...
hacknation
www/components/ai-elements/node.tsx
TypeScript
cd956d722cd6f4f02f388f2fa1c2af96e487de38b32ed95a589492e84264d1ab
0
501
import { Panel as PanelPrimitive } from "@xyflow/react"; import type { ComponentProps } from "react"; import { cn } from "@/lib/utils"; type PanelProps = ComponentProps<typeof PanelPrimitive>; export const Panel = ({ className, ...props }: PanelProps) => ( <PanelPrimitive className={cn( "m-4 overflow-hidd...
hacknation
www/components/ai-elements/panel.tsx
TypeScript
e587e81ea93a427e2002dc77a5556f357801b267698a2dcb8dd2f63184f74915
0
104
"use client"; import { ChevronsUpDownIcon } from "lucide-react"; import type { ComponentProps } from "react"; import { createContext, useContext } from "react"; import { Button } from "@/components/ui/button"; import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } f...
hacknation
www/components/ai-elements/plan.tsx
TypeScript
49b6c0388922238a0796ad9a6c620a5d0f7d9be03ab488117d3d01f4d06c7d69
0
824
"use client"; import type { ChatStatus, FileUIPart } from "ai"; import { CornerDownLeftIcon, ImageIcon, Loader2Icon, MicIcon, PaperclipIcon, PlusIcon, SquareIcon, XIcon, } from "lucide-react"; import { nanoid } from "nanoid"; import { type ChangeEvent, type ChangeEventHandler, Children, type Cl...
hacknation
www/components/ai-elements/prompt-input.tsx
TypeScript
357f07735389ffaf6d16367b7df0d317340c1fa07ed4a7ef4c30db6c41dab0a0
0
896
-mode: prefer provider if present, otherwise use local const provider = useOptionalProviderAttachments(); const local = useContext(LocalAttachmentsContext); const context = provider ?? local; if (!context) { throw new Error( "usePromptInputAttachments must be used within a PromptInput or PromptInputPr...
hacknation
www/components/ai-elements/prompt-input.tsx
TypeScript
c06d3cfbf31045da588b5275b5f6ed8812137d00b159c5bf04254a95a00d96e2
2
896
File[] | FileList) => { const incoming = Array.from(fileList); const accepted = incoming.filter((f) => matchesAccept(f)); if (incoming.length && accepted.length === 0) { onError?.({ code: "accept", message: "No files match the accepted types.", }); return; ...
hacknation
www/components/ai-elements/prompt-input.tsx
TypeScript
6ddc12c137a22944bf7cc8ad40ecac7cc6eb4cfca3ada9131b001021ab4fba46
4
896
form.addEventListener("dragover", onDragOver); form.addEventListener("drop", onDrop); return () => { form.removeEventListener("dragover", onDragOver); form.removeEventListener("drop", onDrop); }; }, [add, globalDrop]); useEffect(() => { if (!globalDrop) { return; } const ...
hacknation
www/components/ai-elements/prompt-input.tsx
TypeScript
e93bf9d4fc23e2cbb8bc262ec919912238da3fde3fffa3c159d35b8df0d3580d
5
896
clear(); } }) .catch(() => { // Don't clear on error - user may want to retry }); } else { // Sync function completed without throwing, clear attachments clear(); if (usingProvider) { co...
hacknation
www/components/ai-elements/prompt-input.tsx
TypeScript
c2fbd99dc67682670916a6ae28d34da531b5b5388ff1505c05f7404965094bac
6
896
{...props} {...controlledProps} /> ); }; export type PromptInputHeaderProps = Omit< ComponentProps<typeof InputGroupAddon>, "align" >; export const PromptInputHeader = ({ className, ...props }: PromptInputHeaderProps) => ( <InputGroupAddon align="block-end" className={cn("flex-wrap order...
hacknation
www/components/ai-elements/prompt-input.tsx
TypeScript
9a6422899d4497325fa6f6335bfa38a9cbee1fc810c28ee7a9bae084e8f74de9
7
896
: ((this: SpeechRecognition, ev: Event) => any) | null; onresult: | ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null; onerror: | ((this: SpeechRecognition, ev: SpeechRecognitionErrorEvent) => any) | null; } interface SpeechRecognitionEvent extends Event { results: SpeechRecog...
hacknation
www/components/ai-elements/prompt-input.tsx
TypeScript
101253c2c6c57cc0ce88a53fe6051369b91c3ea18e911de6f11b47e050e183ee
8
896
"use client"; import { ChevronDownIcon, PaperclipIcon } from "lucide-react"; import type { ComponentProps } from "react"; import { Button } from "@/components/ui/button"; import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "@/components/ui/collapsible"; import { ScrollArea } from "@/components/u...
hacknation
www/components/ai-elements/queue.tsx
TypeScript
88184cd4a50832f2a3aea4c885bf2e8473ad26d7877556de512f0d25458daeae
0
896
blob/data URLs require native img <img alt="" className={cn("h-8 w-8 rounded border object-cover", className)} height={32} width={32} {...props} /> ); export type QueueItemFileProps = ComponentProps<"span">; export const QueueItemFile = ({ children, className, ...props }: QueueItemFilePr...
hacknation
www/components/ai-elements/queue.tsx
TypeScript
4b2d7b6b10d32ab7fca15adca95976d5008016cab44af4fdc293f48cd666708b
1
733
"use client"; import { useControllableState } from "@radix-ui/react-use-controllable-state"; import { BrainIcon, ChevronDownIcon } from "lucide-react"; import type { ComponentProps, ReactNode } from "react"; import { createContext, memo, useContext, useEffect, useState } from "react"; import { Streamdown } from "strea...
hacknation
www/components/ai-elements/reasoning.tsx
TypeScript
9a1d00bc20d7048ac532e8ce48c3e7fd4c72fc4330ae80ad0f96b75b5f7f241c
0
896
-md px-1.5 py-0.5 text-[11px] text-muted-foreground transition-colors hover:bg-muted hover:text-foreground", className )} {...props} > {children ?? ( <> <BrainIcon className="size-3" /> {getThinkingMessage(isStreaming, duration)} <Che...
hacknation
www/components/ai-elements/reasoning.tsx
TypeScript
d9ffe6d73b02245cb319fc858e0588607e1aa8f3d0e753c6820cc6044c3b4ef4
1
395
"use client"; import { ChevronRightIcon } from "lucide-react"; import type { ComponentProps, HTMLAttributes } from "react"; import { createContext, useContext, useMemo } from "react"; import { Badge } from "@/components/ui/badge"; import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "@/components...
hacknation
www/components/ai-elements/schema-display.tsx
TypeScript
a501c8b51bcd721a06ae421675cb4550635b128e74d65ffea4c96151500309db
0
896
text-xs", methodStyles[method], className)} variant="secondary" {...props} > {children ?? method} </Badge> ); }; export type SchemaDisplayPathProps = HTMLAttributes<HTMLSpanElement>; export const SchemaDisplayPath = ({ className, children, ...props }: SchemaDisplayPathProps) => { c...
hacknation
www/components/ai-elements/schema-display.tsx
TypeScript
c57653d896209cae3de3782bd6c001a478cacb89ad0a1604304fed5b941db061
1
896
Badge> )} </div> {description && ( <p className="mt-1 text-muted-foreground text-sm">{description}</p> )} </div> ); export type SchemaDisplayRequestProps = ComponentProps<typeof Collapsible>; export const SchemaDisplayRequest = ({ className, children, ...props }: SchemaDisplayRequestPr...
hacknation
www/components/ai-elements/schema-display.tsx
TypeScript
a56b8906ee079c3819791aadb0cb721b5b64f57433fea6db1d51b4f60c017304
2
896
<p className="pb-2 text-muted-foreground text-sm" style={{ paddingLeft: paddingLeft + 24 }} > {description} </p> )} <CollapsibleContent> <div className="divide-y border-t"> {properties?.map((prop) => ( <SchemaDis...
hacknation
www/components/ai-elements/schema-display.tsx
TypeScript
39154dc4e7161a854bad1287d2efda615b223c6417a3f7539bf14e3de9d5607c
3
438
"use client"; import { motion } from "motion/react"; import { type CSSProperties, type ElementType, type JSX, memo, useMemo, } from "react"; import { cn } from "@/lib/utils"; export type TextShimmerProps = { children: string; as?: ElementType; className?: string; duration?: number; spread?: number...
hacknation
www/components/ai-elements/shimmer.tsx
TypeScript
27bf081cef8e2967e00917ef38aba711a42ef52bb721dbdc69a29df5df8c3c41
0
390
"use client"; import type { ToolUIPart } from "ai"; import { CheckCircleIcon, ChevronDownIcon, CircleIcon, ClockIcon, WrenchIcon, XCircleIcon, } from "lucide-react"; import type { ComponentProps, ReactNode } from "react"; import { isValidElement } from "react"; import { Badge } from "@/components/ui/badge"...
hacknation
www/components/ai-elements/tool.tsx
TypeScript
824a94767fb02b9540af71c89a908dde11f4b25cc98dd1c3b4adff63ba1fdbcf
0
896
/> ); export type ToolInputProps = ComponentProps<"div"> & { input: ToolUIPart["input"]; }; export const ToolInput = ({ className, input, ...props }: ToolInputProps) => ( <div className={cn("space-y-2 overflow-hidden p-4", className)} {...props}> <h4 className="font-medium text-muted-foreground text-xs upperc...
hacknation
www/components/ai-elements/tool.tsx
TypeScript
a914df98aac41d0f86138543de63dc6a673789cf0430169f5010f1fbb3b9ba7b
1
529
import { NodeToolbar, Position } from "@xyflow/react"; import type { ComponentProps } from "react"; import { cn } from "@/lib/utils"; type ToolbarProps = ComponentProps<typeof NodeToolbar>; export const Toolbar = ({ className, ...props }: ToolbarProps) => ( <NodeToolbar className={cn( "flex items-center g...
hacknation
www/components/ai-elements/toolbar.tsx
TypeScript
8869cb2e1032b871b277a01aedb401134bf743a8cc3dc327a30d2cccb6eac582
0
112
"use client"; import { ChevronDownIcon } from "lucide-react"; import type { ComponentProps, ReactNode } from "react"; import { createContext, useContext, useEffect, useState } from "react"; import { Button } from "@/components/ui/button"; import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "@/co...
hacknation
www/components/ai-elements/web-preview.tsx
TypeScript
44bddcd3b6f007a3611d24aa4145fb2ccebbb18d1dc2adf5be381166030d264f
0
896
Enter URL..." value={value ?? inputValue} {...props} /> ); }; export type WebPreviewBodyProps = ComponentProps<"iframe"> & { loading?: ReactNode; }; export const WebPreviewBody = ({ className, loading, src, ...props }: WebPreviewBodyProps) => { const { url } = useWebPreview(); return ...
hacknation
www/components/ai-elements/web-preview.tsx
TypeScript
b057549caef5a4ee96dd643ffce6313b2f748071babc59ca6a771fdf064711db
1
758
"use client"; import type { MapViewState, PickingInfo } from "deck.gl"; import { DeckGL, GeoJsonLayer, ScatterplotLayer } from "deck.gl"; import { useTheme } from "next-themes"; import { useEffect, useMemo, useState } from "react"; import { Map as MapGL } from "react-map-gl/maplibre"; import "maplibre-gl/dist/maplibre...
hacknation
www/components/artifacts/accessibility-map.tsx
TypeScript
e0139a69ed9ce3e30829e565d9d33c599942bd2982c4e04b7a28ff061d3a7ffe
0
896
latitude: data.center.lat, longitude: data.center.lng, zoom: 9, pitch: 0, bearing: 0, }), [data.center.lat, data.center.lng] ); const layers = useMemo(() => { const result: ( | GeoJsonLayer | ScatterplotLayer<ReachableFacility> | ScatterplotLayer<[number, numbe...
hacknation
www/components/artifacts/accessibility-map.tsx
TypeScript
2e68c7a6b2c2ca88028716087cfe48239dc6a503f9ba21086da3a5e0ddc432d8
1
896
0.15)", borderRadius: "8px", padding: "8px 12px", color: "white", }, }; } // Facility marker hover if (layer?.id === "reachable-facilities") { const fac = object as ReachableFacility; return { html: ...
hacknation
www/components/artifacts/accessibility-map.tsx
TypeScript
738179678efed3b39ba4dc1ea664b0c4f269ced9b2f7caf579494b47671d26af
2
896
rounded-full border-2 border-muted-foreground/30 border-t-teal-500 animate-spin" /> <span className="capitalize">{data.stage}...</span> </div> )} </div> {/* Map */} <div className="relative flex-1 z-0"> <MapErrorBoundary> <DeckGL controller ...
hacknation
www/components/artifacts/accessibility-map.tsx
TypeScript
c791f0560de79233bbdd6361ddb9d0c8e294fdd9ef71deff74d4a48363aac6b1
3
756
"use client"; import type { MapViewState, PickingInfo } from "deck.gl"; import { DeckGL, ScatterplotLayer } from "deck.gl"; import { useTheme } from "next-themes"; import { useEffect, useMemo, useState } from "react"; import { Map as MapGL } from "react-map-gl/maplibre"; import "maplibre-gl/dist/maplibre-gl.css"; impo...
hacknation
www/components/artifacts/data-quality-map.tsx
TypeScript
a2bac70ab18521e5f2851ac04dce7a1ae4d847f20d7082a879eaaad90244061a
0
896
> { if (!object) { return null; } const pct = Math.round(object.qualityScore * 100); const label = getQualityLabel(object.qualityScore); const color = object.qualityScore >= 0.7 ? "#22c55e" : object.qualityScore >= 0.4 ? ...
hacknation
www/components/artifacts/data-quality-map.tsx
TypeScript
a7cbb1bcdfbf4e276389b3265f35700797afe758e8c195d5480fb94987f9e95a
1
896
border-t-yellow-500 animate-spin" /> <span className="capitalize">{data.stage}...</span> </div> )} </div> {/* Map */} <div className="relative flex-1 z-0"> <MapErrorBoundary> <DeckGL controller getTooltip={getTooltip} ...
hacknation
www/components/artifacts/data-quality-map.tsx
TypeScript
ac48d2b799eda4c5a22db66a60c0c59206f33a16ad2864ad6a043fd4e8b8818b
2
440
"use client"; import type { MapViewState, PickingInfo } from "deck.gl"; import { DeckGL, ScatterplotLayer } from "deck.gl"; import { useTheme } from "next-themes"; import { useEffect, useMemo, useState } from "react"; import { Map as MapGL } from "react-map-gl/maplibre"; import "maplibre-gl/dist/maplibre-gl.css"; impo...
hacknation
www/components/artifacts/facility-map.tsx
TypeScript
27726f4165b4d265ea6e0339d73ccbd5ea30e285e429b3ffbc9002d3ae93cce2
0
896
px">${escapeHtml(object.name)}</div>`, ]; if (object.type) { lines.push( `<div style="font-size:11px;color:#93c5fd">${escapeHtml(object.type)}</div>` ); } if (object.city) { lines.push( `<div style="font-size:11px;color:#a1a1aa">${esc...
hacknation
www/components/artifacts/facility-map.tsx
TypeScript
e7dcf001e96bf543deff2b0cd899b8bef4d4ed7a82dec80edb4a2f6608a93f64
1
896
""} </p> </div> {data.stage !== "complete" && ( <div className="flex items-center gap-2 text-xs text-muted-foreground"> <div className="size-3 rounded-full border-2 border-muted-foreground/30 border-t-blue-500 animate-spin" /> <span className="capitalize">{dat...
hacknation
www/components/artifacts/facility-map.tsx
TypeScript
ad73ae5b4c6e9d331177db9c17aef4c02ded2527e72a453314195690834d9dcf
2
448
"use client"; import type { MapViewState } from "deck.gl"; import { DeckGL, HeatmapLayer } from "deck.gl"; import { useTheme } from "next-themes"; import { useEffect, useMemo, useState } from "react"; import { Map as MapGL } from "react-map-gl/maplibre"; import "maplibre-gl/dist/maplibre-gl.css"; import { MapErrorBoun...
hacknation
www/components/artifacts/heatmap.tsx
TypeScript
bb750240bde5e1df4a6f07548a6063c135a48c04267bbf36aff6a70f0e09b299
0
896
s, f) => s + f.weight, 0); const metricLabel = METRIC_LABELS[data.weightMetric] ?? data.weightMetric; return ( <div className="flex size-full flex-col"> {/* Header bar */} <div className="flex items-center justify-between border-b border-border bg-background px-4 py-3"> <div> <h2 ...
hacknation
www/components/artifacts/heatmap.tsx
TypeScript
6bb4e3f89146829dbe2b78edbec1577b0e850eb81ebc79da13e3723787d20d36
1
580
"use client"; import { Component } from "react"; import type { ErrorInfo, ReactNode } from "react"; type Props = { children: ReactNode; }; type State = { hasError: boolean; }; /** * Error boundary that catches WebGL/WebGPU initialisation failures * (e.g. luma.gl probing `maxTextureDimension2D` on an undefined...
hacknation
www/components/artifacts/map-error-boundary.tsx
TypeScript
1dafe8b3a857324341cdf23e5571cc8eaf0560b1cd460dc21028f9d841856a40
0
434
"use client"; import type { MapViewState, PickingInfo } from "deck.gl"; import { DeckGL, GeoJsonLayer, ScatterplotLayer } from "deck.gl"; import { useTheme } from "next-themes"; import { useEffect, useMemo, useState } from "react"; import { Map as MapGL } from "react-map-gl/maplibre"; import "maplibre-gl/dist/maplibre...
hacknation
www/components/artifacts/medical-desert.tsx
TypeScript
a47b1b7a107daec047b0e69f44c493d2747ccaed961044dca8b7d3439379845d
0
896