Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

447 B
Raw Blame
type params = { name: string; description: string; tabs: string; note: string }

const Example = ({ name, description = '', tabs = '', note = '' }: params) => {
  if (note !== '') {
    const [noteTitle, ...noteText] = note.split('\n')
    console.log(noteText)
    note = `
<Admonition type="${noteTitle}">
  
${noteText.join('\n')}

</Admonition>
`
  }
  return `
### ${name}

${description}

${tabs}

${note}
`.trim()
}

export default Example