import type { CropRecord } from "@/services/dictionaryService";

export type CropItem = CropRecord;

export interface CropFormValues {
  cropName: string;
}

export interface CropPageState {
  rows: CropItem[];
  form: CropFormValues;
  loading: boolean;
  submitting: boolean;
  error: string | null;
}

export const initialCropState: CropPageState = {
  rows: [],
  form: {
    cropName: "",
  },
  loading: true,
  submitting: false,
  error: null,
};
