mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
30 lines
633 B
TypeScript
30 lines
633 B
TypeScript
'use client'
|
|
|
|
import { useSendTelemetryEvent } from '~/lib/telemetry'
|
|
import { Button } from 'ui'
|
|
|
|
type DocumentationButtonProps = {
|
|
href: string
|
|
buttonLocation: string
|
|
}
|
|
|
|
export function DocumentationButton({ href, buttonLocation }: DocumentationButtonProps) {
|
|
const sendTelemetryEvent = useSendTelemetryEvent()
|
|
|
|
return (
|
|
<Button asChild size="medium">
|
|
<a
|
|
href={href}
|
|
onClick={() =>
|
|
sendTelemetryEvent({
|
|
action: 'see_documentation_button_clicked',
|
|
properties: { buttonLocation },
|
|
})
|
|
}
|
|
>
|
|
Documentation
|
|
</a>
|
|
</Button>
|
|
)
|
|
}
|