mirror of
https://github.com/supabase/supabase.git
synced 2026-05-20 12:30:17 +08:00
* Scaffold advisor rules * Wrap up implementation * Add feature flag * Fix type issues * Fix types * fix * Scaffold * Revise UI for advisor rules * Hide edit button * Refactor AdvisorRulesLayout * Some fixes from PR feedback
25 lines
540 B
TypeScript
25 lines
540 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 />}
|
|
onClick={(e) => e.stopPropagation()}
|
|
>
|
|
<a target="_blank" rel="noopener noreferrer" href={href}>
|
|
{abbrev ? 'Docs' : 'Documentation'}
|
|
</a>
|
|
</Button>
|
|
)
|
|
}
|