export const { ContractErrorResult } = createCodecComponent(
  "ContractErrorResult",
  ({ error }: Format.Errors.ContractErrorResult) =>
    isContractError(error) ? (
      <ContractError data={error} />