import { Box, Loader } from '@wix/design-system';
import React from 'react';
export function TextWidthLoader(props) {
    const { text, ...rest } = props;
    return (React.createElement(Box, { align: "center", verticalAlign: "middle", position: "relative" },
        React.createElement(Box, { visibility: "hidden" }, text),
        React.createElement(Box, { position: "absolute" },
            React.createElement(Loader, { ...rest }))));
}
//# sourceMappingURL=TextWidthLoader.js.map