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