# Sync Status

> When a connected service last synced, in words ("Synced 6 minutes ago"), when it syncs next, what the last sync brought ("1,204 emails") and why a sync failed, with "Sync now".

Component · Connectors · Pro kit · [Live page](https://ui.twentyfirst.media/pro/components/SyncStatus/)

When a connected service last synced, in words ("Synced 6 minutes ago"), when it syncs next, what
the last sync brought ("1,204 emails") and why a sync failed, with "Sync now".

- States `synced`, `syncing`, `error`, `paused` and `never`; `compact` keeps one line.
- Pass `now` so server and client render the same relative times (`formatRelative`).

## Example

```tsx
import { Panel, SyncStatus } from "@twentyfirstmedia/pro";

const now = new Date(2026, 10, 14, 9, 30);
const minutes = (m: number) => new Date(now.getTime() + m * 60000);

export default function Preview() {
  return (
    <Panel title="Sync status" style={{ maxWidth: 620 }}>
      <SyncStatus
        state="synced"
        now={now}
        last={minutes(-6)}
        next={minutes(54)}
        counts={[
          { label: "emails", value: 1204 },
          { label: "threads", value: 316 },
          { label: "attachments", value: 88 },
        ]}
        onSync={() => {}}
      />
      <SyncStatus state="syncing" now={now} last={minutes(-60)} />
      <SyncStatus
        state="error"
        now={now}
        last={minutes(-26 * 60)}
        error="N26 asks you to confirm access again every 180 days."
        onSync={() => {}}
      />
      <SyncStatus state="paused" now={now} last={minutes(-3 * 24 * 60)} />
      <SyncStatus state="never" now={now} />
      <SyncStatus state="synced" now={now} last={minutes(-2)} compact />
    </Panel>
  );
}
```

## Props

### SyncStatus

| Prop | Type | Notes |
| --- | --- | --- |
| `state` | `"synced" \| "syncing" \| "error" \| "paused" \| "never"` | Required |
| `last?` | `Date \| string \| number` | The last successful sync. |
| `next?` | `Date \| string \| number` | The next planned sync. |
| `now?` | `Date \| string \| number` | "Now" for the relative times; pass it so server and client render the same. |
| `counts?` | `{ label: string; value: number }[]` | What the last sync brought: `{ label: "emails", value: 1204 }`. |
| `error?` | `ReactNode` | Why the sync failed. |
| `onSync?` | `() => void` |  |
| `compact?` | `boolean` | One line: state and time only. |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |

### Panel

| Prop | Type | Notes |
| --- | --- | --- |
| `side?` | `boolean` |  |
| `title?` | `string` |  |
| `subtitle?` | `string` |  |
| `action?` | `ReactNode` |  |
| `children?` | `ReactNode` |  |
| `surface?` | `Surface` | `"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`. |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |
