import { _ as _slicedToArray } from '../slicedToArray-BB-AwwkK.js';
import { useState } from 'react';

function useKey() {
  var _useState = useState(0),
      _useState2 = _slicedToArray(_useState, 2),
      count = _useState2[0],
      setCount = _useState2[1];

  var reset = function reset() {
    return setCount(count + 1);
  };

  return [count, reset];
}

export { useKey as default };
