Best practices for edit details and view details for table row interface? [on hold]

What is best practice in defining edit details or view details in the same row?

Should I use Pencil(edit) icon and Eye(view) icon in the same row?