> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sublay.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Use project

> Access the current project ID and configuration from context

## Overview

`useProject` returns the project context values set by the nearest `SublayProvider`. Use it to read the active `projectId` and the project's configuration (such as enabled integrations) from anywhere inside the provider tree.

## Usage Example

```tsx theme={null}
import { useProject } from "@sublay/react-js";

function IntegrationStatus() {
  const { projectId, project } = useProject();

  if (!project) return <p>Loading project...</p>;

  return (
    <div>
      <p>Project ID: {projectId}</p>
      <p>Integrations: {project.integrations.map((i) => i.name).join(", ")}</p>
    </div>
  );
}
```

## Returns

**projectId** `string | undefined`

The project ID passed to the enclosing `SublayProvider`.

**project** `object | null | undefined`

Lean project data fetched from the API, or `null` while loading. Contains:

* `id` — the project's UUID.
* `integrations` — array of integrations enabled for this project. Each entry has:
  * `id` — integration ID
  * `projectId` — parent project ID
  * `name` — integration name
  * `data` — integration-specific configuration
  * `createdAt` — creation timestamp


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.