import { useMemo } from 'react';
import { useSubscription } from 'use-subscription';
export function useProperty(property) {
    return useSubscription(useMemo(function () { return ({
        getCurrentValue: property.get.bind(property),
        subscribe: property.subscribe.bind(property),
    }); }, [property]));
}
//# sourceMappingURL=useProperty.js.map