import { useRegisterRoute } from "./useRegisterRoute.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { Route } from "react-router-dom";
//#region src/routes/PublicRoute.tsx
const PublicRoute = (t0) => {
	const $ = c(7);
	let props;
	let t1;
	if ($[0] !== t0) {
		({attemptSilentAuth: t1, ...props} = t0);
		$[0] = t0;
		$[1] = props;
		$[2] = t1;
	} else {
		props = $[1];
		t1 = $[2];
	}
	const attemptSilentAuth = t1 === void 0 ? false : t1;
	let t2;
	if ($[3] !== attemptSilentAuth) {
		t2 = {
			isPublic: true,
			attemptSilentAuth
		};
		$[3] = attemptSilentAuth;
		$[4] = t2;
	} else t2 = $[4];
	useRegisterRoute(t2);
	let t3;
	if ($[5] !== props) {
		t3 = /* @__PURE__ */ React.createElement(Route, props);
		$[5] = props;
		$[6] = t3;
	} else t3 = $[6];
	return t3;
};
//#endregion
export { PublicRoute };

//# sourceMappingURL=PublicRoute.mjs.map