Roo-Code/webview-ui/src/components/common/VSCodeButtonLink.tsx
2025-03-05 12:28:17 -08:00

19 lines
424 B
TypeScript

import React from "react"
import { VSCodeButton } from "@vscode/webview-ui-toolkit/react"
interface VSCodeButtonLinkProps {
href: string
children: React.ReactNode
[key: string]: any
}
export const VSCodeButtonLink = ({ href, children, ...props }: VSCodeButtonLinkProps) => (
<a
href={href}
style={{
textDecoration: "none",
color: "inherit",
}}>
<VSCodeButton {...props}>{children}</VSCodeButton>
</a>
)