Supposing good will on both sides, nothing is preventing Ireland from seeking a free trade agreement with the UK.
Denmark has one with non-EU Norway, for instance. If, on the other hand, the EU bureaucracy chooses to impose a de facto embargo on the UK and Ireland suffers as a result, it’s hardly the UK’s fault.