"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useCategory = void 0;
var _react = require("react");
var _tsSdkReactNative = require("@amityco/ts-sdk-react-native");
const useCategory = () => {
  const getCategory = (0, _react.useCallback)(async categoryId => {
    const {
      data
    } = await _tsSdkReactNative.CategoryRepository.getCategory(categoryId);
    return data;
  }, []);
  return {
    getCategory
  };
};
exports.useCategory = useCategory;
//# sourceMappingURL=useCategory.js.map