Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/packages / pages / Product / renderProps.js
Size: Mime:
import * as React from 'react';
import { productSchema } from '@skava/packages/core/schemas';
import { JsonLd } from '@skava/packages/ui';
import { RatingButton } from './styled';
import { wording } from './fixture';
export const WriteReviewButtonAdapter = (props) => (React.createElement(RatingButton, Object.assign({ dataQa: props.qa, isLink: true, snackbar: 'client integration' }, props), wording.writeReview));
export const renderSchema = (item) => {
    const schema = productSchema(item);
    return React.createElement(JsonLd, { data: schema, key: "schema-product" });
};
import { ProductContext } from './state/context/ProductContext';
export class ProductDetailSchema extends React.PureComponent {
    render() {
        const schema = productSchema(this.context);
        return React.createElement(JsonLd, { data: schema, key: "schema-product" });
    }
}
ProductDetailSchema.contextType = ProductContext;
//# sourceMappingURL=renderProps.js.map