mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
24 lines
481 B
TypeScript
24 lines
481 B
TypeScript
import React from "react"
|
|
import { VSCodeButton } from "@vscode/webview-ui-toolkit/react"
|
|
|
|
interface VSCodeButtonLinkProps {
|
|
href: string
|
|
children: React.ReactNode
|
|
[key: string]: any
|
|
}
|
|
|
|
const VSCodeButtonLink: React.FC<VSCodeButtonLinkProps> = ({ href, children, ...props }) => {
|
|
return (
|
|
<a
|
|
href={href}
|
|
style={{
|
|
textDecoration: "none",
|
|
color: "inherit",
|
|
}}>
|
|
<VSCodeButton {...props}>{children}</VSCodeButton>
|
|
</a>
|
|
)
|
|
}
|
|
|
|
export default VSCodeButtonLink
|