docs: added cloud documentation project (#12711)

This commit is contained in:
Shahed Nasser
2025-06-12 11:29:14 +03:00
committed by GitHub
parent bd6d9777c5
commit 8a88748982
85 changed files with 1463 additions and 19 deletions
@@ -0,0 +1,28 @@
"use client"
import {
Feedback as UiFeedback,
FeedbackProps as UiFeedbackProps,
} from "docs-ui"
import { usePathname } from "next/navigation"
import { basePathUrl } from "../../utils/base-path-url"
import { useMemo } from "react"
type FeedbackProps = Omit<UiFeedbackProps, "event" | "pathName">
const Feedback = (props: FeedbackProps) => {
const pathname = usePathname()
const feedbackPathname = useMemo(() => basePathUrl(pathname), [pathname])
return (
<UiFeedback
event="survey"
pathName={feedbackPathname}
question="Was this guide helpful?"
{...props}
/>
)
}
export default Feedback