]> Untitled Git - lemmy-ui.git/blob - src/shared/utils/app/get-comment-id-from-props.ts
fix: Fix badge alignment and break out into component
[lemmy-ui.git] / src / shared / utils / app / get-comment-id-from-props.ts
1 export default function getCommentIdFromProps(props: any): number | undefined {
2   const id = props.match.params.comment_id;
3   return id ? Number(id) : undefined;
4 }