mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
This PR moves several components which rely on `next` out of the `ui` package to the `ui-patterns` package. `ui-patterns` package is intented to be imported with specific imports so it's ok if there are components reliant on `next` in there. The `SonnerToaster` component has removed its dependency by requiring a prop for `theme`.
31 lines
540 B
TypeScript
31 lines
540 B
TypeScript
import { Mermaid } from 'ui-patterns/Mermaid'
|
|
|
|
export default function MermaidDemo() {
|
|
return (
|
|
<Mermaid
|
|
chart={`
|
|
flowchart TB
|
|
Client[Your Application]
|
|
|
|
|
|
Gateway[API Gateway]
|
|
Auth[Auth]
|
|
API[PostgREST]
|
|
Realtime[Realtime]
|
|
PgBouncer[PgBouncer]
|
|
Postgres[(PostgreSQL)]
|
|
|
|
Client --> Gateway
|
|
Client --> PgBouncer
|
|
Client <--> Realtime
|
|
Gateway --> Auth
|
|
Gateway --> API
|
|
Auth --> Postgres
|
|
API --> Postgres
|
|
Realtime <--> Postgres
|
|
PgBouncer --> Postgres
|
|
`}
|
|
/>
|
|
)
|
|
}
|