WelcomeScreenDecor.tsx 230 B

1234567891011
  1. import { ReactNode } from "react";
  2. const WelcomeScreenDecor = ({
  3. children,
  4. shouldRender,
  5. }: {
  6. children: ReactNode;
  7. shouldRender: boolean;
  8. }) => (shouldRender ? <>{children}</> : null);
  9. export default WelcomeScreenDecor;