one
Version:
One is a React framework for web, iOS, and Android apps.
17 lines (15 loc) • 838 B
JavaScript
function labeledContentProps(props) {
const { label, value, systemImage, hasChildren } = props;
if (typeof label !== "string" || !label) throw new Error("Swift.LabeledContent label must be a non-empty string");
if (value !== void 0 && typeof value !== "string") throw new Error("Swift.LabeledContent value must be a string");
if (systemImage !== void 0 && typeof systemImage !== "string") throw new Error("Swift.LabeledContent systemImage must be a string");
if (value !== void 0 && hasChildren) throw new Error("Swift.LabeledContent takes either a value or children");
if (value === void 0 && !hasChildren) throw new Error("Swift.LabeledContent needs a value or children");
return {
label,
value: value ?? "",
systemImage: systemImage ?? ""
};
}
export { labeledContentProps };
//# sourceMappingURL=labeledContent.mjs.map