MCPcopy
hub / github.com/upstash/jstack / CopyButtonProps

Interface CopyButtonProps

www/src/components/copy-button.tsx:5–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import { useState } from "react"
4
5interface CopyButtonProps {
6 code: string
7 className?: string
8}
9
10export const CopyButton = ({ code, className }: CopyButtonProps) => {
11 const [copied, setCopied] = useState(false)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected