feat(web): add bgm viewer navigation
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import packages from 'virtual:bgm/packages';
|
||||
import type { SerializedPackage } from '@tts/bgm';
|
||||
|
||||
/** Look up a bgm package by id from the `virtual:bgm/packages` module. */
|
||||
export function findPackage(id: string | undefined): SerializedPackage | undefined {
|
||||
return packages.find((p) => p.meta.id === id);
|
||||
}
|
||||
Reference in New Issue
Block a user