import React, { type FC, type ReactNode } from 'react' import { cn } from 'ui' import { TextLink } from 'ui-patterns/TextLink' import CodeWindow from '@/components/CodeWindow' import SectionContainer from '@/components/Layouts/SectionContainer' const codeSnippet = ` select pgmq.create('my_special_queue'); select * from pgmq.send( queue_name => 'my_special_queue', msg => '{"hello": "world"}', ); select * from pgmq.pop('my_special_queue'); ` interface Props { id: string label: ReactNode heading: ReactNode subheading: ReactNode className?: string cta?: { label: string url: string } } const QueuesSQLSection: FC = (props) => { return (
{props.label}

{props.heading}

{props.subheading}

{props.cta && ( )}
) } export default QueuesSQLSection