getPreviewFiles = (remoteDatabase) => {
  const remoteFiles = remoteDatabase.data.reduce((files, entry) => {
    const previews = entry.previews || []
    files.push(...previews)
    return files
  }, [])

  return remoteFiles
}
@param {import('./types.js').RemoteDatabase} remoteDatabase
@returns {string[]}