import {LitElement, html, unsafeCSS} from 'lit'; import {customElement, property} from 'lit/decorators.js'; import compentStyle from './notification-message-item.css?inline'; import {renderTime} from '../../time'; @customElement('obc-notification-message-item') export class ObcNotificationMessageItem extends LitElement { @property({type: String}) time = '2021-01-01T11:11:11.111Z'; override render() { const time = renderTime(new Date(this.time)); return html`
${time}
`; } static override styles = unsafeCSS(compentStyle); } declare global { interface HTMLElementTagNameMap { 'obc-notification-message-item': ObcNotificationMessageItem; } }