wacomm 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,7 @@
1
- import { ZeroFuncType } from 'waujs';
2
1
  interface LikeIconProps {
3
2
  isLiked: boolean;
4
3
  count: number;
5
- onLike: ZeroFuncType;
6
- onDislike: ZeroFuncType;
4
+ onClick: (isLiked: boolean) => void;
7
5
  }
8
- declare function LikeIcon({ isLiked, count, onLike, onDislike, }: LikeIconProps): import("react/jsx-runtime").JSX.Element;
6
+ declare function LikeIcon({ isLiked, count, onClick, }: LikeIconProps): import("react/jsx-runtime").JSX.Element;
9
7
  export default LikeIcon;
@@ -13950,13 +13950,9 @@ function LN({
13950
13950
  function BN({
13951
13951
  isLiked: e,
13952
13952
  count: t,
13953
- onLike: o,
13954
- onDislike: n
13953
+ onClick: o
13955
13954
  }) {
13956
- const r = () => {
13957
- e ? n() : o();
13958
- };
13959
- return /* @__PURE__ */ T.jsxs(ro, { onClick: r, children: [
13955
+ return /* @__PURE__ */ T.jsxs(ro, { onClick: () => o(e), children: [
13960
13956
  e ? "❤️" : "🤍",
13961
13957
  /* @__PURE__ */ T.jsx("span", { children: t })
13962
13958
  ] });
@@ -41967,7 +41963,7 @@ function KD(e) {
41967
41963
  }, [r]), null;
41968
41964
  }
41969
41965
  const Hj = Cr(KD);
41970
- const _D = import("./mapbox-gl-ykdhm45P.mjs").then((e) => e.m), eE = v.forwardRef(function(t, o) {
41966
+ const _D = import("./mapbox-gl-CcrAs5oj.mjs").then((e) => e.m), eE = v.forwardRef(function(t, o) {
41971
41967
  return WD(t, o, _D);
41972
41968
  }), kb = ZD;
41973
41969
  const tE = $D;