@salla.sa/twilight-components
Version:
Salla Web Component
32 lines (31 loc) • 693 B
TypeScript
import { Comment } from './interfaces';
export declare class SallaCommentItem {
constructor();
componentDidLoad(): void;
host: HTMLElement;
private likeBtn;
private modal;
/**
* Single Comment Instance
*/
comment: Comment;
/**
* Hide Bought
*/
hideBought: Boolean;
has_bought_trans: any;
rated_trans: any;
waiting_approval_trans: any;
has_order_trans: any;
allowLikes: any;
allowAttachImages: any;
helpfulLabel: any;
likesCount: number;
likedComments: any[];
private getReplies;
private getDate;
private getTime;
private toggleLike;
private updateLikedComments;
render(): any;
}