UNPKG

sanity-plugin-seo-tools

Version:

> Upgrading from V2 to V3 is a breaking change. The `seo-tools` input has been replaced by a SEO pane which needs to be set-up using a custom desk structure as per the installation guide. Secondly, the previously automatically provided fields (focus keywo

18 lines (17 loc) 1.01 kB
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; import { Box, Grid } from '@sanity/ui'; import React from 'react'; import styled from 'styled-components'; import { SeoRatingBubble } from './SeoRatingBubble'; var StyledGrid = styled(Grid)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: flex-start;\n gap: .5rem;\n grid-template-columns: auto 1fr;\n"], ["\n align-items: flex-start;\n gap: .5rem;\n grid-template-columns: auto 1fr;\n"]))); export var SeoResultEntry = function (_a) { var result = _a.result; return (React.createElement(StyledGrid, null, React.createElement(Box, null, React.createElement(SeoRatingBubble, { rating: result.rating })), React.createElement(Box, { dangerouslySetInnerHTML: { __html: result.text } }))); }; var templateObject_1;