mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 18:35:07 +03:00
19 lines
468 B
TypeScript
19 lines
468 B
TypeScript
import { BookOpen } from 'lucide-react'
|
|
import { Button } from 'ui'
|
|
|
|
interface DocsButtonProps {
|
|
href: string
|
|
abbrev?: boolean
|
|
className?: string
|
|
}
|
|
|
|
export const DocsButton = ({ href, abbrev = true, className }: DocsButtonProps) => {
|
|
return (
|
|
<Button asChild type="default" className={className} icon={<BookOpen />}>
|
|
<a target="_blank" rel="noopener noreferrer" href={href}>
|
|
{abbrev ? 'Docs' : 'Documentation'}
|
|
</a>
|
|
</Button>
|
|
)
|
|
}
|