1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
export default {
extraDependencies: ['html', 'language'],
slots: {
link: {
type: 'html',
mutable: true,
},
direction: {
validate: v => v.is('previous', 'next'),
},
id: {
type: 'boolean',
default: true,
},
},
generate: (slots, {html, language}) =>
(html.isBlank(slots.link) || !slots.direction
? html.blank()
: slots.link.slots({
tooltipStyle: 'browser',
color: false,
attributes:
(slots.id
? {id: `${slots.direction}-button`}
: null),
content:
language.$('misc.nav', slots.direction),
})),
};
|