repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git]
/
packages
/
drive-store
/
utils
/
share.ts
blob
0cb53746c509c90f9902908736b83997ae258a79
1
import type { DecryptedLink } from '../store';
2
3
export const getSharedStatus = (link?: DecryptedLink) => {
4
if (!link?.isShared) {
5
return '';
6
}
7
if (link?.shareUrl?.isExpired || link?.trashed) {
8
return 'inactive';
9
}
10
return 'shared';
11
};