Can i make a salary component to read from a leave type

i want to make a deduction salary component that reads from a leave type i created called “leave without notice” ?