Hey is a decentralized and permissionless social media app built with Lens Protocol 馃尶
at main 25 lines 640 B view raw
1import { NATIVE_TOKEN_SYMBOL } from "@hey/data/constants"; 2import { useUnwrapTokensMutation } from "@hey/indexer"; 3import TokenOperation from "./TokenOperation"; 4 5interface UnwrapProps { 6 value: string; 7 refetch: () => void; 8} 9 10const Unwrap = ({ value, refetch }: UnwrapProps) => { 11 return ( 12 <TokenOperation 13 buildRequest={(amount) => ({ amount })} 14 buttonLabel={`Unwrap to ${NATIVE_TOKEN_SYMBOL}`} 15 refetch={refetch} 16 resultKey="unwrapTokens" 17 successMessage="Unwrap Successful" 18 title="Unwrap" 19 useMutationHook={useUnwrapTokensMutation} 20 value={value} 21 /> 22 ); 23}; 24 25export default Unwrap;