How write sidebar block

how write sidebar block and how show sidebar list like home, privacy policy , rate us etc

You can initialize the sidebar with any arrangement, customize the arrangement according to your need.

Please share block for it