import React from 'react' // Components import { ModalWrapper } from '@freesewing/react/components/Modal' /* * A component to display an iframe intended for a modal window. * * All props are passed down to the iframe tag. * * @component * @param {object} props - All component props * @returns {JSX.Element} */ const Iframe = (props) => ( ) /* * A component to display an iframe with FreeSewing.eu docs content intended for a modal window. * * @component * @param {object} props - All component props * @param {string} props.path - The (relative) URL path of the page to load * @returns {JSX.Element} */ const DocsHelp = ({ path }) => ( ) /* * A component to display inline help for a design option * * This is typically loaded as modal content as it returns an iframe. * * @component * @param {object} props - All component props * @param {string} props.design - The design name * @param {string} props.o - The option ID * @returns {JSX.Element} */ const DesignOptionHelp = ({ design, o }) => design && o ? ( ) : (
Invalid props provided to DesignOptionHelp.
) /* * A component to display inline help for a core setting * * This is typically loaded as modal content as it returns an iframe. * * @component * @param {object} props - All component props * @param {string} props.name - The core setting name/id * @returns {JSX.Element} */ const CoreSettingHelp = ({ name }) => name ? ( ) : (Invalid props provided to CoreSettingsHelp.
) /* * A component to display inline help for a UI preference * * This is typically loaded as modal content as it returns an iframe. * * @component * @param {object} props - All component props * @param {string} props.name - The core setting name/id * @returns {JSX.Element} */ const UiPreferenceHelp = ({ name }) => name ? ( ) : (Invalid props provided to UiPreferenceHelp.
) /* * A component to display inline help for a measurement. * * This is typically loaded as modal content as it returns an iframe * * @component * @param {object} props - All component props * @param {string} [props.m = undefined] - The measurment name (id) * @returns {JSX.Element} */ const MeasurementHelp = ({ m }) => m ? ( ) : (No measurement name provided in the m prop.
) export function modalCoreSettingHelp(name, setModal) { setModal(