UNPKG

@remotion/studio

Version:

APIs for interacting with the Remotion Studio

12 lines (11 loc) 721 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ZodOptionalEditor = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const zod_schema_type_1 = require("./zod-schema-type"); const ZodOrNullishEditor_1 = require("./ZodOrNullishEditor"); const ZodOptionalEditor = ({ jsonPath, schema, setValue, value, onRemove, mayPad }) => { const innerType = (0, zod_schema_type_1.getInnerType)(schema); return (jsx_runtime_1.jsx(ZodOrNullishEditor_1.ZodOrNullishEditor, { jsonPath: jsonPath, onRemove: onRemove, schema: schema, setValue: setValue, value: value, nullishValue: undefined, mayPad: mayPad, innerSchema: innerType })); }; exports.ZodOptionalEditor = ZodOptionalEditor;