'use strict';
'use client';
import { c } from 'react/compiler-runtime';
import { canActivateAuth } from '../../../meta/auth/auth-guards.js';
import { useRouter } from '../../../meta/client/framework/hooks.js';
import { useEffect } from 'react';

var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", {
  value,
  configurable: true
});
function TestLayout(t0) {
  const $ = c(2);
  const {
    children
  } = t0;
  const router = useRouter();
  let t1;
  if ($[0] !== router) {
    t1 = [router];
    $[0] = router;
    $[1] = t1;
  } else {
    t1 = $[1];
  }
  useEffect(_temp, t1);
  return children;
}
function _temp() {
  canActivateAuth();
}
__name(TestLayout, "TestLayout");

export { TestLayout as default };
