| 59 | } |
| 60 | |
| 61 | interface NewFieldDialogProps { |
| 62 | coordinates: [number, number][]; |
| 63 | mapToken?: string; |
| 64 | existingFieldColors?: string[]; |
| 65 | onSave: (field: { |
| 66 | name: string; |
| 67 | crop: string; |
| 68 | cropEmoji: string; |
| 69 | area: number; |
| 70 | color: string; |
| 71 | location: string; |
| 72 | group?: string; |
| 73 | coordinates: [number, number][][]; |
| 74 | }) => void; |
| 75 | onCancel: () => void; |
| 76 | } |
| 77 | |
| 78 | const NewFieldDialog = ({ coordinates, mapToken, existingFieldColors, onSave, onCancel }: NewFieldDialogProps) => { |
| 79 | const [name, setName] = useState(""); |
nothing calls this directly
no outgoing calls
no test coverage detected