<commit_before>/* eslint-disable react/prop-types */
import React, {FunctionComponent} from 'react'
import {IntentLink} from 'part:@sanity/base/router'
import styles from './BlockObject.css'

export type DropDownMenuItemProps = {
  title: string
  icon: React.ComponentType
  color?: string
  intent?: 'edit' | string
  params?: Record<string, any>
  name?: string
}

export const MenuItem: FunctionComponent<DropDownMenuItemProps> = ({
  title,
  color,
  icon,
  intent,
  params
}): JSX.Element => {
  const Icon = icon
  return (
    <div className={color === 'danger' ? styles.menuItemDanger : styles.menuItem}>
      {intent ? (<commit_msg>[form-builder] PTE: add comment about MenuItem comp.<commit_after>/* eslint-disable react/prop-types */
import React, {FunctionComponent} from 'react'
import {IntentLink} from 'part:@sanity/base/router'
import styles from './BlockObject.css'

// This is the component that renders the dropdown button-menu on the block object's preview

export type DropDownMenuItemProps = {
  title: string
  icon: React.ComponentType
  color?: string
  intent?: 'edit' | string
  params?: Record<string, any>
  name?: string
}

export const MenuItem: FunctionComponent<DropDownMenuItemProps> = ({
  title,
  color,
  icon,
  intent,
  params
}): JSX.Element => {
  const Icon = icon
  return (
    <div className={color === 'danger' ? styles.menuItemDanger : styles.menuItem}>
      {intent ? (
{'fraction_non_alphanumeric': 0.12421052631578948, 'fraction_numerical': 0.0, 'mean_word_length': 4.281481481481482, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6747733', 'n_tokens_mistral': 435, 'n_tokens_neox': 427, 'n_words': 126}