/* * Derived from vercel/ai-elements (skills/ai-elements/scripts/sources-custom.tsx). * Copyright 2023 Vercel, Inc. Licensed under Apache-2.0. * Modified by ZCode: local integration, formatting and adaptations. * See THIRD-PARTY-NOTICES.md in the repository root for license and provenance. */ "use client"; import { Source, Sources, SourcesContent, SourcesTrigger } from "@/components/ai-elements/sources"; import { ChevronDownIcon, ExternalLinkIcon } from "lucide-react"; const sources = [ { href: "https://stripe.com/docs/api", title: "Stripe API Documentation" }, { href: "https://docs.github.com/en/rest", title: "GitHub REST API" }, { href: "https://docs.aws.amazon.com/sdk-for-javascript/", title: "AWS SDK for JavaScript", }, ]; const Example = () => (

Using {sources.length} citations

{sources.map((source) => ( {source.title} ))}
); export default Example;