Files
supabase/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/MarkdownContent.tsx
Joshen Lim 4fdeed448b Joshen/fe 2854 migrate queues integration to new UI (#44270)
## Context

Related to marketplace related work, just moves the Queues integration
to the new UI (Changes are feature flagged)
<img width="1145" height="584" alt="image"
src="https://github.com/user-attachments/assets/d3245889-597d-44e2-9850-f20907e42056"
/>

Installation is now in a side panel with the intention that it'll just
be a single click to install integrations that involve multiple parts
<img width="400" height="955" alt="image"
src="https://github.com/user-attachments/assets/71903b61-6bd2-486c-903e-b48ae2133887"
/>


## To test
- Verify that you can install the integration and everything else should
be status quo
- Verify that everything should be status quo if the flag is off
2026-03-30 14:23:21 +08:00

27 lines
828 B
TypeScript

import { Markdown } from 'components/interfaces/Markdown'
import { useEffect, useState } from 'react'
interface MarkdownContentProps {
content: string | null | undefined
integrationId?: string
}
export const MarkdownContent = ({
content: remoteContent,
integrationId,
}: MarkdownContentProps) => {
const [localContent, setLocalContent] = useState<string>('')
const content = remoteContent || localContent
useEffect(() => {
if (!!integrationId && !content) {
import(`static-data/integrations/${integrationId}/overview.md`)
.then((module) => setLocalContent(String(module.default)))
.catch((error) => console.error('Error loading markdown:', error))
}
}, [integrationId, content])
return <Markdown className="flex flex-col gap-y-4 text-foreground-light">{content}</Markdown>
}