mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
9 lines
283 B
TypeScript
9 lines
283 B
TypeScript
type PostLoadingStateComment = {
|
|||
|
|
state?: string;
|
||
|
|
timestamp?: number;
|
||
|
|
updatedAt?: number;
|
||
|
|
};
|
||
|
|
|
||
|
|
export const shouldSuppressPostLoadingState = (post: PostLoadingStateComment | undefined): boolean =>
|
||
|
|
Boolean(post?.timestamp && (!post.updatedAt || post.state === 'initializing'));
|