Adding snapshotComponent