# Job status (/blocks/job-status)

## Try it [#try-it]

Alex has confirmed the hire. Select **Close job** and the role changes from Open to Closed.

## Connect your data [#connect-your-data]

Pass the saved job status to `JobStatusBlock`. Supply its close action while the caller can close the role. In your app, wait for [the job status mutation](/api/reference/mutations/set-job-status) before displaying Closed.

If you have a photo for the hiring contact, pass its URL in `contactPhotoUrl`.

See this block in the [placement walkthrough](/workflows/headless-ats). The preview uses sample data and resets on reload.
## Build prompt
See the client, hiring contact and status of one role.
Use the React source and fictional records at https://docs.kith.contact/blocks/job-status.md.
Build a working preview with sample data. Keep my changes local for now.
If you cannot fetch the page, ask me to paste its Markdown.
## React source
```tsx
"use client";

import { useState } from "react";
import { JobStatusBlock } from "@recruiteros/recruit-ui/blocks";

export function JobStatusExample() {
  const [status, setStatus] = useState<"OPEN" | "CLOSED">("OPEN");
  return <JobStatusBlock
    title="Engineering Director"
    client="Example Studio"
    contact="Alex Marchetti"
    contactPhotoUrl="/people/alex-marchetti.jpg"
    statusLabel={status === "OPEN" ? "Open" : "Closed"}
    onClose={status === "OPEN" ? () => setStatus("CLOSED") : undefined}
  />;
}
```