()
| 1379 | |
| 1380 | #[component] |
| 1381 | fn BlockNotifications() -> Element { |
| 1382 | rsx! { |
| 1383 | div { style: "display: grid; gap: 0.3rem; margin-bottom: 1rem;", |
| 1384 | h3 { style: "margin: 0; font-size: 1rem; font-weight: 660; color: var(--secondary-color-3);", "Notifications" } |
| 1385 | p { style: "margin: 0; color: var(--secondary-color-5); font-size: 0.85rem;", "Pick what we ping you about." } |
| 1386 | } |
| 1387 | div { style: "display: grid; gap: 0.95rem;", |
| 1388 | NotificationRow { id: "blk-notif-comments", name: "Comments", description: "Replies on your posts", default_on: true } |
| 1389 | NotificationRow { id: "blk-notif-mentions", name: "Mentions", description: "When someone @'s you", default_on: true } |
| 1390 | NotificationRow { id: "blk-notif-weekly", name: "Weekly digest", description: "A Monday morning recap", default_on: false } |
| 1391 | NotificationRow { id: "blk-notif-updates", name: "Product updates", description: "New features and releases", default_on: false } |
| 1392 | } |
| 1393 | } |
| 1394 | } |
| 1395 | |
| 1396 | #[component] |
| 1397 | fn NotificationRow(id: String, name: String, description: String, default_on: bool) -> Element { |
nothing calls this directly
no outgoing calls
no test coverage detected