Become a Pro / website · becomeapro.ai / src / components / source-link.tsx
| 1 | "use client"; |
| 2 | |
| 3 | import { usePathname } from "next/navigation"; |
| 4 | |
| 5 | // Footer "Source" link: points at this page's own code on Branchwell. |
| 6 | export function SourceLink() { |
| 7 | const pathname = usePathname() || "/"; |
| 8 | return ( |
| 9 | <a href={`https://branchwell.ai/becomeapro/website/for${pathname}`} rel="noopener" className="underline"> |
| 10 | Source |
| 11 | </a> |
| 12 | ); |
| 13 | } |