Preheat the oven to 400 degrees F and line a baking sheet with foil. Slice the tofu from a short side into 1/2-inch-thick sticks. Press the tofu pieces gently between paper towels to remove the excess water, then season generously with salt.
Place the flour in a shallow baking dish. Whisk the eggs and 1/4 teaspoon red pepper flakes in another shallow dish. Pulse the coconut and panko in a food processor until roughly chopped; transfer to a third shallow dish and toss with 1 tablespoon olive oil. Dip the tofu pieces in the flour, shaking off any excess, then dip in the egg mixture, letting the excess drip off, and press in the coconut mixture to coat. Arrange on the prepared baking sheet. Bake, rotating the pan halfway through, until the tofu is golden brown, about 25 minutes.
Meanwhile, whisk 2 tablespoons vinegar with the remaining 1 teaspoon olive oil in a large bowl. Trim the snap peas and halve crosswise, adding them to the dressing as you go. Add the cilantro, season with salt and toss. In a small bowl, whisk the apricot preserves, 3 tablespoons water, the remaining 2 tablespoons vinegar and a pinch each of red pepper flakes and salt. Serve the tofu with the snap pea salad and apricot dipping sauce.