Action RPG Inventory System

How do I make it more modular? lets so If I have a bow instead of a sword, is there a way for me to have it so when it’s equipped it uses bow animations?