# Date/time presets

Target cho Inbox thuần chatty-ui; owner hiện tại là InsertReminderDatePopup, chưa phải component dùng chung mới.

## Key rules

- Admin: phần Current chỉ chỉ ra owner đang dùng; component Inbox dùng chung theo thiết kế nằm ở Target.
- Admin: ảnh preview là thiết kế, không chứng minh API hoặc hành vi đã ship.

## Use when / Avoid

Dùng để triển khai Date/time presets của Inbox theo Target. Không import tên component Target chưa tồn tại; không coi owner cục bộ là API dùng chung.

### Use instead

| Component | Use when |
| --- | --- |
| InsertReminderDatePopup | Owner hiện tại của vùng tương ứng; chưa phải Target dùng chung |
| Input | Ô nhập thô của kit, chưa có đủ wrapper Target |

## Live preview

Example — Target: ảnh chụp mock, xem trạng thái và vùng dùng trong Target; chưa phải implementation.

```jsx
import React from 'react';
function Design({asset,name}) { return <figure data-inbox-design style={{margin:0}}><a href={'/maps/'+asset}><img src={'/maps/'+asset} alt={name+' Inbox design target'} style={{display:'block',maxWidth:'100%',height:'auto'}}/></a><figcaption>Target · thiết kế mock, chưa phải implementation. Ảnh không chứng minh mọi trạng thái yêu cầu đã có.</figcaption></figure>; }
export function DateTime() { return <Design asset="inbox-target-snooze.webp" name="Date/time presets"/>; }
```

## Admin

### Import / element

| Component / element | Import / file | Scope root |
| --- | --- | --- |
| `InsertReminderDatePopup` | import InsertReminderDatePopup from '@assets/pages/InboxManagement/Parts/Reminder/InsertReminderDatePopup.js'; | Owner cục bộ hiện tại; chưa có scope dùng chung cho component Target |

### Anatomy

| Part | Element |
| --- | --- |
| 1 | Owner hiện tại: InsertReminderDatePopup; component dùng chung mới chưa có |

### Placement / order

| Context | Order |
| --- | --- |
| Inbox | Theo caller hiện tại; vị trí của component mới nằm ở Target |

### Props

| Prop | Type | Values | Default | Notes |
| --- | --- | --- | --- | --- |
| Not available | Not available | Not available | Not available | API dùng chung mới chưa có; không tái đặt API của owner |

### Sizes

| Size | Height | Padding | Gap | Radius | Font role (px/rem) | Hit target | Breakpoint / mechanism |
| --- | --- | --- | --- | --- | --- | --- | --- |
| Not available | Not available | Not available | Not available | Not available | Not available | Not available | Not available |

### Tokens

| Part | Token | Light | Dark |
| --- | --- | --- | --- |
| Not available | Not available | Not available | Not available |

### States

| State | Trigger | Visual change (values) | ARIA/attribute |
| --- | --- | --- | --- |
| Not available | Not available | Chưa có state contract dùng chung theo Target | Not available |

### Behaviour

| Interaction | Result |
| --- | --- |
| Current owner | Theo logic cục bộ; contract mới xem Target |

### Copy

| String | i18n key | Where |
| --- | --- | --- |
| Not available | Not available | Nhãn do caller hiện tại quản lý |

### Source

| File | Evidence |
| --- | --- |
|  | Owner hiện tại; không chứng minh component Target đã có |

## Do / Don't

Do: giữ ranh giới giữa code hiện tại và Target khi triển khai.

Don't: bịa import hoặc dùng ảnh thiết kế làm bằng chứng API đã ship.

## Accessibility

| Surface | Role / name | Keyboard / focus | Live region | Contrast pair / ratio |
| --- | --- | --- | --- | --- |
| Admin | Owner hiện tại quản lý | Not available cho component dùng chung mới | Not available | Chưa đo cho component Target |

## Target

```target
| Surface | Now | Target |
| --- | --- | --- |
| Admin | Owner InsertReminderDatePopup có trong source; component dùng chung đúng Target chưa có | Not available — new build follows Target. **Date/time presets**: preset 1 giờ, ngày mai, tuần sau; giờ tuỳ chọn. Dùng ở Snooze và Reminder. Giá trị 2.0 qua token chatty-ui literal; phase 1b gỡ wrapper Polaris trước khi chuyển caller. |
```

Ảnh chỉ chứng minh phần được vẽ trong mock; các trạng thái liệt kê là yêu cầu triển khai, không claim ảnh hoặc code đã có đủ.

