Function
SnippetInput
({ className, ...props }: SnippetInputProps)
Source from the content-addressed store, hash-verified
| 66 | >; |
| 67 | |
| 68 | export const SnippetInput = ({ className, ...props }: SnippetInputProps) => { |
| 69 | const { code } = useContext(SnippetContext); |
| 70 | |
| 71 | return ( |
| 72 | <InputGroupInput |
| 73 | className={cn("text-foreground", className)} |
| 74 | readOnly |
| 75 | value={code} |
| 76 | {...props} |
| 77 | /> |
| 78 | ); |
| 79 | }; |
| 80 | |
| 81 | export type SnippetCopyButtonProps = ComponentProps<typeof InputGroupButton> & { |
| 82 | onCopy?: () => void; |
Callers
nothing calls this directly
Tested by
no test coverage detected