(next: SelectedPlace)
| 413 | const canCreate = name.trim().length >= 2 && place.name.trim().length > 0; |
| 414 | |
| 415 | function applyPlace(next: SelectedPlace) { |
| 416 | setPlace(next); |
| 417 | if (!name.trim() || name.startsWith("一起点亮")) { |
| 418 | setName(`一起点亮${next.name}`); |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | async function searchPlaces() { |
| 423 | const keyword = query.trim(); |
no outgoing calls
no test coverage detected