import {html, LitElement} from 'lit'; import {styles} from './limit-info.styles'; import { definePreviewBoxCustomElement } from '../lib/util/custom-elements-helper'; export class PreviewBoxLimitInfoElement extends LitElement { static override styles = styles; override render() { const domain = window.location.origin; return html`
You've reached the API limit for ${domain} Check Usage
`; } } const customElementName = 'previewbox-limit-info' as const; declare global { interface HTMLElementTagNameMap { [customElementName]: PreviewBoxLimitInfoElement; } } definePreviewBoxCustomElement(customElementName, PreviewBoxLimitInfoElement);