import React from 'react'; import * as DetailedInfo from './DetailedInfo'; export const TX_ACTIONS_BLOCK_ID = 'tx-actions'; type Props = { children: React.ReactNode; isLoading?: boolean; type: 'tx' | 'user_op'; }; const DetailedInfoActionsWrapper = ({ children, isLoading, type }: Props) => { const [ hasScroll, setHasScroll ] = React.useState(false); return ( <> { `${ type === 'tx' ? 'Transaction' : 'User operation' } action` } { children } ); }; export default React.memo(DetailedInfoActionsWrapper);