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`.
23 lines
524 B
TypeScript
23 lines
524 B
TypeScript
import { Mermaid } from 'ui-patterns/Mermaid'
|
|
|
|
export default function MermaidSequenceAsync() {
|
|
return (
|
|
<Mermaid
|
|
chart={`
|
|
sequenceDiagram
|
|
autonumber
|
|
participant P as Postgres
|
|
participant R as Remote Source
|
|
P->>R: Execute Query
|
|
P->>P: Spawn async task (non-blocking)
|
|
par Async Task
|
|
R->>P:
|
|
Note over R,P: Stream rows incrementally<br/>Send via bounded channel
|
|
end
|
|
P-->P: Read from channel (blocking_recv)
|
|
P-->P: Convert & emit row immediately
|
|
`}
|
|
/>
|
|
)
|
|
}
|