// import * as React from 'react';

import { Colors } from 'react-native-ios-utilities';
import { ContextMenuView } from 'react-native-ios-context-menu';

import type { ExampleItemProps } from './SharedExampleTypes';
import { ContextMenuCard } from '../components/ContextMenuCard';


export function ContextMenuViewExample23(props: ExampleItemProps) {

  return (
    <ContextMenuView
      style={props.style}
      menuConfig={{
        menuTitle: '',
        menuItems: [{
          type: 'action',
          actionKey: 'remove-rating',
          menuAttributes: ['destructive'],
          actionTitle: 'Remove Rating',
          icon: {
            type: 'IMAGE_SYSTEM',
            imageValue: {
              systemName: 'trash',
            },
          },
        }, {
          type: 'action',
          actionKey: 'info',
          actionTitle: 'Information',
          icon: {
            type: 'IMAGE_SYSTEM',
            imageValue: {
              systemName: 'info.circle',
            },
          },
        }, {
          type: 'menu',
          menuTitle: '',
          menuOptions: ['displayInline'],
          menuPreferredElementSize: 'small',
          menuItems: [{
          actionKey: 'key-01-01',
          actionTitle: '',
            icon: {
              type: 'IMAGE_SYSTEM',
              imageValue: {
                systemName: 'hand.thumbsup',
              },
              imageOptions: {
                renderingMode: 'alwaysOriginal',
                tint: Colors.GREEN.A700,
              }
            }
          }, {
            actionKey: 'key-01-02',
            actionTitle: '',
            icon: {
              type: 'IMAGE_SYSTEM',
              imageValue: {
                systemName: 'plus.circle',
              },
              imageOptions: {
                renderingMode: 'alwaysOriginal',
                tint: Colors.BLUE.A700,
              }
            }
          }, {
            actionKey: 'key-01-03',
            actionTitle: '',
            icon: {
              type: 'IMAGE_SYSTEM',
              imageValue: {
                systemName: 'hand.thumbsdown',
              },
              imageOptions: {
                renderingMode: 'alwaysOriginal',
                tint: Colors.RED.A700,
              }
            }
          }],
        }, {
          type: 'menu',
          menuTitle: '',
          menuOptions: ['displayInline'],
          menuPreferredElementSize: 'small',
          menuItems: [{
          actionKey: 'key-02-01',
          actionTitle: '',
            icon: {
              type: 'IMAGE_SYSTEM',
              imageValue: {
                systemName: 'star',
              },
              imageOptions: {
                renderingMode: 'alwaysOriginal',
                tint: Colors.AMBER.A700,
              }
            }
          }, {
            actionKey: 'key-02-02'   ,
            actionTitle: '',
            icon: {
              type: 'IMAGE_SYSTEM',
              imageValue: {
                systemName: 'star.lefthalf.fill',
              },
              imageOptions: {
                renderingMode: 'alwaysOriginal',
                tint: Colors.AMBER.A700,
              }
            }
          }, {
            actionKey: 'key-02-03',
            actionTitle: '',
            icon: {
              type: 'IMAGE_SYSTEM',
              imageValue: {
                systemName: 'star.fill',
              },
              imageOptions: {
                renderingMode: 'alwaysOriginal',
                tint: Colors.AMBER.A700,
              }
            }
          }],
        }]
      }}
    >
      <ContextMenuCard
        index={props.index}
        title={'ContextMenuViewExample23'}
        subtitle={'menuPreferredElementSize'}
        description={[
          `menuPreferredElementSize: 'small' - Requires iOS 16+.`
        ]}
      />
    </ContextMenuView>
  );
};