Files
supabase/studio/components/interfaces/Docs/Introduction.tsx
T
Joshen Lim 30375c55a0 Chore/revert changes to api docs (#18865)
* Reinstate API docs files and pages

* Add API side panel back to feature preview

* Nav bar to link to api page if feature is not toggled

* Hide API docs button behind feature preview for auth users, storage and edge functions

* Use new API side panel for table editor, and update the language selector to make it more apparent

* Fix feature preview modal styling

* Merge master resolve conflicts

* Add URL to graphiql in API docs side panel, which links to /api/graphiql without the docs layout menu

* Add auth enabled flag for user management section in Docs

* Add realtime enabled flag for subscribe to changes section in Docs

* Add realtime enabled flag for API docs side panel

* Update redirect next config
2023-11-13 13:56:09 +08:00

24 lines
629 B
TypeScript

import { AutoApiService } from 'data/config/project-api-query'
import Snippets from 'components/interfaces/Docs/Snippets'
import CodeSnippet from './CodeSnippet'
interface Props {
autoApiService: AutoApiService
selectedLang: 'bash' | 'js'
}
export default function Introduction({ autoApiService, selectedLang }: Props) {
return (
<>
<div className="doc-section doc-section--client-libraries">
<article className="code">
<CodeSnippet
selectedLang={selectedLang}
snippet={Snippets.init(autoApiService.endpoint)}
/>
</article>
</div>
</>
)
}