| 123456789101112131415161718192021222324 |
- 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>
- )
- }
|