import { useParams } from 'common' import Link from 'next/link' import { Button } from 'ui' import { SimpleCodeBlock } from '@ui/components/SimpleCodeBlock' import { Markdown } from '../Markdown' import { ExternalLink } from 'lucide-react' interface ResourceContentProps { selectedLanguage: 'js' | 'bash' snippet: { key: string title: string description?: string docsUrl?: string } codeSnippets: any[] } const ResourceContent = ({ selectedLanguage, snippet, codeSnippets }: ResourceContentProps) => { const { ref: projectRef } = useParams() return (

{snippet.title}

{snippet.docsUrl !== undefined && ( )}
{snippet.description !== undefined && (
)}
{codeSnippets.map((codeSnippet) => (

{codeSnippet.title}

{codeSnippet[selectedLanguage]}
))}
) } export default ResourceContent