Sanity App SDK
    Preparing search index...
    • Returns metadata for a given project

      Parameters

      Returns SanityProject

      The metadata for the project

       function ProjectMetadata({ projectId }: { projectId: string }) {
      const project = useProject(projectId)

      return (
      <figure style={{ backgroundColor: project.metadata.color || 'lavender'}}>
      <h1>{project.displayName}</h1>
      </figure>
      )
      }