+
+ setExpanded((previousState) => ({
+ ...previousState,
+ one: !previousState.one,
+ }))
+ }
+ error={errors.one}
+ warning={warnings.one}
+ info={infos.one}
+ >
+
+ handleChange("one", errors, setErrors, "error")}
+ checked={!!errors.one}
+ />
+
+ handleChange("one", warnings, setWarnings, "warning")
+ }
+ />
+ handleChange("one", infos, setInfos, "info")}
+ />
+
+
+
+ setExpanded((previousState) => ({
+ ...previousState,
+ two: !previousState.two,
+ }))
+ }
+ subTitle="Sub title"
+ error={errors.two}
+ warning={warnings.two}
+ info={infos.two}
+ >
+
+ handleChange("two", errors, setErrors, "error")}
+ checked={!!errors.two}
+ />
+
+ handleChange("two", warnings, setWarnings, "warning")
+ }
+ />
+ handleChange("two", infos, setInfos, "info")}
+ />
+
+
+
+ setExpanded((previousState) => ({
+ ...previousState,
+ three: !previousState.three,
+ }))
+ }
+ subTitle="This is a longer sub title"
+ error={errors.three}
+ warning={warnings.three}
+ info={infos.three}
+ >
+
+ handleChange("three", errors, setErrors, "error")}
+ checked={!!errors.three}
+ />
+
+ handleChange("three", warnings, setWarnings, "warning")
+ }
+ />
+ handleChange("three", infos, setInfos, "info")}
+ />
+
+
+
+