mirror of
https://github.com/supabase/supabase.git
synced 2026-05-08 09:50:33 -04:00
ec1c534013
* Add db wrappers open in dashboard cta * Restore getLatestRelease return to null * Add guide template components with flexible content positioning * Add Guide components with composition pattern * Remove default branch on tag value * Add GuideTemplate component and do some clean up * Restore original GuideTemplate * Clean up code and unused props * Remove displayName * Remove unwanted export * Refactor EditLink to its own helper file * Apply several fixes * Fix underline on cta button * Remove default main tag * More descriptive button cta label * fix(docs): add iceberg_wrapper dashboard integration --------- Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
31 lines
841 B
TypeScript
31 lines
841 B
TypeScript
import { ExternalLink } from 'lucide-react'
|
|
import { cn } from 'ui'
|
|
import { type EditLink } from '~/features/helpers.edit-link'
|
|
|
|
interface GuideFooterProps {
|
|
className?: string
|
|
editLink: EditLink
|
|
}
|
|
|
|
export function GuideFooter({ className, editLink }: GuideFooterProps) {
|
|
if (!editLink) return null
|
|
|
|
return (
|
|
<footer className={cn('mt-16 not-prose', className)}>
|
|
<a
|
|
href={editLink.includesProtocol ? editLink.link : `https://github.com/${editLink.link}`}
|
|
className={cn(
|
|
'w-fit',
|
|
'flex items-center gap-1',
|
|
'text-sm text-scale-1000 hover:text-scale-1200',
|
|
'transition-colors'
|
|
)}
|
|
target="_blank"
|
|
rel="noreferrer noopener edit"
|
|
>
|
|
Edit this page on GitHub <ExternalLink size={14} strokeWidth={1.5} />
|
|
</a>
|
|
</footer>
|
|
)
|
|
}
|