Refactor dig-bar into component