1"use client"; 2 3import { useEffect } from "react"; 4 5export function IdentitySetter(props: { 6 cb: () => Promise<void>; 7 call: boolean; 8}) { 9 useEffect(() => { 10 if (props.call) props.cb(); 11 }, [props]); 12 return null; 13}