6 lines
203 B
TypeScript
6 lines
203 B
TypeScript
import { User } from "@/utils/types/models";
|
|
|
|
export const showDeleteCommentButton = (commentAuthorUsername: string, currentUser?: User) => {
|
|
return commentAuthorUsername === currentUser?.username;
|
|
};
|