mirror of
https://github.com/supabase/supabase.git
synced 2026-09-07 02:20:52 +08: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`.
17 lines
268 B
TypeScript
17 lines
268 B
TypeScript
import { Mermaid } from 'ui-patterns/Mermaid'
|
|
|
|
export default function MermaidBasic() {
|
|
return (
|
|
<Mermaid
|
|
chart={`
|
|
flowchart TD
|
|
A[Start] --> B{Is it working?}
|
|
B -->|Yes| C[Great!]
|
|
B -->|No| D[Debug]
|
|
D --> B
|
|
C --> E[End]
|
|
`}
|
|
/>
|
|
)
|
|
}
|