https://regeneratingserumolayfast.blogspot.com/2023/06/conditional-rendering-inside-function.html
Conditional Rendering Inside A Function