UNPKG

@remotion/studio

Version:

APIs for interacting with the Remotion Studio

12 lines (11 loc) 716 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ZodNullableEditor = 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 ZodNullableEditor = ({ 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, innerSchema: innerType, setValue: setValue, value: value, nullishValue: null, mayPad: mayPad })); }; exports.ZodNullableEditor = ZodNullableEditor;