1 import type { DecryptedLink } from '../../store';
2 import type { DecryptedNode } from './interface';
5 * Converts a Drive store object to a DecryptedNode.
7 export const decryptedLinkToNode = (link: DecryptedLink, volumeId?: string): DecryptedNode => {
9 volumeId: volumeId || link.volumeId,
11 parentNodeId: link.parentLinkId,
15 createTime: link.createTime,
16 mimeType: link.mimeType,
17 signatureAddress: link.signatureAddress,
18 nameSignatureAddress: link.nameSignatureAddress,
19 isCorruptedNode: link.corruptedLink,
20 trashed: link.trashed,
21 trashedByParent: link.trashedByParent,
22 } satisfies DecryptedNode;