I see your requirement now. You are trying to do dynamic imports - where a specific snippet is imported based on a particular condition. This is currently not possible to do, although it is a pending feature request.
I request you to upvote it and add your use case there as well.