A peg bag
Cut a back, a front that is split or overlapped for the opening, and hem the opening edges before you sew the bag together. A wooden or plastic hanger sits in a channel or a folded top. Stitch around the hook opening so the hanger stays and the cloth does not tear.
The opening should be wide enough for a hand holding pegs, and not so low that the pegs fall out when the bag tips. Hem it properly. A raw opening frays in a damp cupboard.
This is not the gift bag. A peg bag lives on a hook and gets wet. A pretty lining that cannot be washed is a poor choice.