TextStyleSelect = ({ textStyle, setProp }) => {
  return (
    <select
      value={textStyle}
      className="form-control form-select"
      onChange={(e) => {
        if (e.target) {
          const target_value = e.target.value;
          setProp((prop) => (prop.textStyle = target_value));
        }
      }}
    >
      <option value="">Normal</option>
      <option value="h1">Heading 1</option>
      <option value="h2">Heading 2</option>
      <option value="h3">Heading 3</option>
      <option value="h4">Heading 4</option>
      <option value="h5">Heading 5</option>
      <option value="h6">Heading 6</option>
      <option value="fw-bold">Bold</option>
      <option value="fst-italic">Italics</option>
      <option value="small">Small</option>
      <option value="text-muted">Muted</option>
      <option value="text-underline">Underline</option>
      <option value="font-monospace">Monospace</option>
    </select>
  );
}
@param {object} props
@param {string} props.textStyle
@param {function} props.setProp
@returns {select}
@namespace
@category saltcorn-builder
@subcategory components / elements / utils