import React from 'react'; import { Button, ButtonElement, IndexPath, OverflowMenu, OverflowMenuElement, MenuItem, } from '@ui-kitten/components'; import { OverflowMenuPropsCustom } from './type'; export const OverflowMenuShowcase = ( props: OverflowMenuPropsCustom ): OverflowMenuElement => { const [visible, setVisible] = React.useState(false); const [selectedIndex, setSelectedIndex] = React.useState(null); const toggleMenu = (): void => { setVisible(!visible); }; const onSelect = (index: IndexPath): void => { setSelectedIndex(index); toggleMenu(); }; const renderButton = (): ButtonElement => ( ); const renderData = props.data.map((el, index) => ( )); return ( {renderData} ); };