How can I have an amsmath Theorem environment where the name of the environment is passed as an argument?
e.g.
\begin{note}[Name of the Theorem]
Lorem ipsum dolor sit amet, consetetur sadipscing elitr,
sed diam nonumy eirmod tempor invidunt ut labore et dolore
magna aliquyam erat, sed diam voluptua.
\end{note}
\begin{note}[A different name]
Lorem ipsum dolor sit amet, consetetur sadipscing elitr,
sed diam nonumy eirmod tempor invidunt ut labore et dolore
magna aliquyam erat, sed diam voluptua.
\end{note}
Thanks in advance!
EDIT: Added a second example for clarity

