@teampilot/sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.32 • Public • Published

Teampilot SDK

npm version

sdk.teampilot.ai

import { fetchTeampilotData } from '@teampilot/sdk'
import { z } from 'zod'
import { env } from '~/env.mjs'

export const Reasons = async () => {
  const reasons = await fetchTeampilotData({
    launchpadSlugId: env.LAUNCHPAD_SLUG_ID_SDK_EXPERT,
    message: '5 Reasons why Teampilot SDK is awesome',
    schema: z.array(z.string()),
  })
  return (
    <ul className="list-disc space-y-2">
      {reasons.map((reason, idx) => (
        <li key={idx}>{reason}</li>
      ))}
    </ul>
  )
}

Readme

Keywords

none

Package Sidebar

Install

npm i @teampilot/sdk

Weekly Downloads

131

Version

0.0.32

License

MIT

Unpacked Size

93.8 kB

Total Files

8

Last publish

Collaborators

  • weiskopfsodefa
  • sodefa-admin
  • kvngrf
  • sean-nicholas
  • rechenberger