blob: 54b5e2b1e62bc66b6ad9beed710b1164351ba175 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Shorthand for checking if the track has unique cover art and exposing a
// fallback value if it isn't.
import {input, templateCompositeFrom} from '#composite';
import {exitWithoutDependency} from '#composite/control-flow';
export default templateCompositeFrom({
annotation: `exitWithoutUniqueCoverArt`,
inputs: {
value: input({defaultValue: null}),
},
steps: () => [
exitWithoutDependency({
dependency: 'hasUniqueCoverArt',
mode: input.value('falsy'),
value: input('value'),
}),
],
});
|