'use client'; import { PressableIcon } from '@/internal/components/PressableIcon'; import { TextInput } from '@/internal/components/TextInput'; import { backArrowSvg } from '@/internal/svg/backArrowSvg'; import { cn, pressable, text } from '@/styles/theme'; import { useState } from 'react'; import type { Hex } from 'viem'; import { useAppchainBridgeContext } from './AppchainBridgeProvider'; export const AppchainBridgeResumeTransaction = () => { const { setIsResumeTransactionModalOpen, handleResumeTransaction } = useAppchainBridgeContext(); const [withdrawalTxHash, setWithdrawalTxHash] = useState(null); const [invalidInput, setInvalidInput] = useState(false); const backButton = ( { setIsResumeTransactionModalOpen(false); }} >
{backArrowSvg}
); return (
{backButton}

Resume Transaction

Transaction hash { setWithdrawalTxHash(value); }} value={withdrawalTxHash || ''} />
{withdrawalTxHash && invalidInput && (

Please enter a valid transaction hash

)}
); };