Added pns snippet. Add local props and states vars