chore: dont show embedded file export options if no selected super note has them

This commit is contained in:
Aman Harwara
2023-11-11 22:17:32 +05:30
parent 991a7a521f
commit 7d9dabb818
3 changed files with 9 additions and 5 deletions

View File

@@ -120,7 +120,7 @@ const isSuperNote = (note: SNNote) => {
return note.noteType === NoteType.Super
}
const noteHasEmbeddedFiles = (note: SNNote) => {
export const noteHasEmbeddedFiles = (note: SNNote) => {
return note.text.includes('"type":"snfile"')
}