MCPcopy Create free account
hub / github.com/Thanas-R/Virdis / NewFieldDialogProps

Interface NewFieldDialogProps

src/components/NewFieldDialog.tsx:61–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61interface 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
78const NewFieldDialog = ({ coordinates, mapToken, existingFieldColors, onSave, onCancel }: NewFieldDialogProps) => {
79 const [name, setName] = useState("");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected