// Example: Inside a React component
import { TOKEN_NAME } from "../utils/constants";

function MyComponent() {
  const [token, setToken] = useState(null);

  useEffect(() => {
    setToken(localStorage.getItem(TOKEN_NAME));
  }, []);

  return <div>Token: {token}</div>;
}