import React from 'react';
import { Box, InfoIcon, Text, ToggleSwitch } from '@wix/design-system';
export const RequiredToggle = ({ label, checked, onChange, }) => (React.createElement(Box, { verticalAlign: "middle", gap: "SP2" },
    React.createElement(ToggleSwitch, { checked: checked, onChange: () => onChange(!checked) }),
    React.createElement(Text, { size: "small" }, label),
    React.createElement(InfoIcon, { content: "When enabled, this field must have a value before saving an item." })));
//# sourceMappingURL=RequiredToggle.js.map