{"version":3,"file":"context-BxaJEdNf.cjs","names":[],"sources":["../src/components/FormControl/context.tsx"],"sourcesContent":["import React, { createContext, useContext } from \"react\";\n\nexport interface FormControlContextValue {\n  hasError: boolean;\n}\n\nconst FormControlContext = createContext<FormControlContextValue | null>(null);\n\nexport function useFormControlContext(): FormControlContextValue | null {\n  return useContext(FormControlContext);\n}\n\nexport function FormControlProvider(\n  props: React.PropsWithChildren<{ value: FormControlContextValue }>,\n) {\n  const { value, children } = props;\n  return <FormControlContext.Provider value={value}>{children}</FormControlContext.Provider>;\n}\n"],"mappings":";;;;;AAMA,MAAM,sBAAA,GAAA,MAAA,eAAmE,KAAK;AAE9E,SAAgB,wBAAwD;AACtE,SAAA,GAAA,MAAA,YAAkB,mBAAmB;;AAGvC,SAAgB,oBACd,OACA;CACA,MAAM,EAAE,OAAO,aAAa;AAC5B,QAAO,iBAAA,GAAA,kBAAA,KAAC,mBAAmB,UAApB;EAAoC;EAAQ;EAAuC,CAAA"}