UNPKG

@remotion/studio

Version:

APIs for interacting with the Remotion Studio

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