import { Pencil } from 'lucide-react' import { cn } from '@/lib/utils' interface EditOnGithubProps { pageId: string repoUrl: string label?: string className?: string } export function EditOnGithub({ pageId, repoUrl, label = 'Edit this page on GitHub', className, }: EditOnGithubProps) { if (!repoUrl || repoUrl.includes('your-org')) return null const filePath = `src/content/${pageId}.mdx` const editUrl = `${repoUrl.replace(/\/$/, '')}/edit/main/${filePath}` return ( {label} ) }