#need more info best if you open a thread

1 messages · Page 1 of 1 (latest)

cunning pumice
chrome stagBOT
#

Hi @cunning pumice. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

cunning pumice
#

Here is my page:

import FilterBar from '@/components/filter-bar'
import PeopleList from '@/components/people-list'
import Api from "@/lib/api"
import {Person, PersonList} from "@/lib/types"

function classNames(...classes: String[]) {
  return classes.filter(Boolean).join(' ')
}

async function getPeople():Promise<PersonList> {
  const res = await fetch( `${process.env.NEXT_PUBLIC_API_URL}/api/contacts`, {
    headers: {
      Authorization: `Bearer 1`,
      'X-Sparkfire-Account-Id': '1'
    }
  } );
  return res.json();
}

export default async function People() {
  const people = await getPeople()

  return (
    <>
      <h1 className="text-3xl font-bold py-4">
        Your Community
      </h1>

      <FilterBar/>

      <PeopleList people={people}/>

    </>
  )
}