Files
medusa-store/www/apps/book/components/EditButton/index.tsx
Shahed Nasser 4fe28f5a95 chore: reorganize docs apps (#7228)
* reorganize docs apps

* add README

* fix directory

* add condition for old docs
2024-05-03 17:36:38 +03:00

17 lines
321 B
TypeScript

"use client"
import { EditButton as UiEditButton } from "docs-ui"
import { usePathname } from "next/navigation"
const EditButton = () => {
const pathname = usePathname()
return (
<UiEditButton
filePath={`/www/apps/book/app${pathname.replace(/\/$/, "")}/page.mdx`}
/>
)
}
export default EditButton