Tomas Hertl has agreed to terms on a two-year, $6 million contract with the San Jose Sharks.

Hertl, 22, was a restricted free agent.

The 17th overall pick in the 2012 Entry Draft, Hertl had 21 goals and 46 points in 81 games for the Sharks last year.

For his career, the Czech Republic product has 49 goals and 102 points in 200 games.