# How to plot the following graph on latex?

I have the function |x||y-2| <= 1

How would I plot this on latex? I have seen a question posted today that is similar to this, however the graph produced by this function is more complex. So the method used in that question won't work.

Perhaps like this?

\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}
[
restrict z to domain=0:1
]


restrict z to domain*=0:1