Cupboard door dowel and dowel socket

Had a small cupboard door as pictured.
the dowel had broken and dowel holder was missing to hinge the door
this design has solved the issue