(snapshot: Directory.Snapshot, model: Directory.DefaultModel)
| 885 | } |
| 886 | |
| 887 | function selectVariant(snapshot: Directory.Snapshot, model: Directory.DefaultModel) { |
| 888 | const variants = Directory.variants(snapshot, model) |
| 889 | if (!variants) return |
| 890 | if (variants.default) return "default" |
| 891 | return Object.keys(variants)[0] |
| 892 | } |
| 893 | |
| 894 | function configOptions(snapshot: Directory.Snapshot, session: ConfigState) { |
| 895 | return buildConfigOptions({ |