import React, { forwardRef } from 'react';
import { ReadOnlyStarsRatingBar } from './components/ReadOnlyStarsRatingBar';
import InteractiveStarsRatingBar from './components/InteractiveStarsRatingBar';
const StarsRatingBar = forwardRef((props, ref) => {
    return props.readOnly ? (React.createElement(ReadOnlyStarsRatingBar, { ...props })) : (React.createElement(InteractiveStarsRatingBar, { ref: ref, ...props }));
});
StarsRatingBar.displayName = 'StarsRatingBar';
export default StarsRatingBar;
//# sourceMappingURL=StarsRatingBar.js.map