UNPKG

@remotion/studio

Version:

APIs for interacting with the Remotion Studio

18 lines (17 loc) 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SchemaResetButton = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const react_1 = require("react"); const InlineAction_1 = require("../../InlineAction"); const icon = { height: 14, color: 'currentColor', }; const SchemaResetButton = ({ onClick }) => { const renderAction = (0, react_1.useCallback)((color) => { return (jsx_runtime_1.jsx("svg", { style: icon, viewBox: "0 0 512 512", children: jsx_runtime_1.jsx("path", { fill: color, d: "M48.5 224H40c-13.3 0-24-10.7-24-24V72c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2L98.6 96.6c87.6-86.5 228.7-86.2 315.8 1c87.5 87.5 87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3c-62.2-62.2-162.7-62.5-225.3-1L185 183c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8H48.5z" }) })); }, []); return jsx_runtime_1.jsx(InlineAction_1.InlineAction, { renderAction: renderAction, onClick: onClick }); }; exports.SchemaResetButton = SchemaResetButton;