so://phie

verbal

A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal

blob: ecdc7ba8bee3e2b14ed78bd68db3f6b0d9d7a5ba (1275 bytes)[doc][blame][raw]

1import {$lang} from '../utils.js';

2import VButton from '../element/button.js';

3

4export default {

5 props: ['state'],

6 components: {

7 VButton

8 },

9 methods: {

10 $lang

11 },

12 template: `

13 <div class="sticky top-0 z-30">

14 <div class="flex bg-black py-6 gap-4">

15 <div class="flex flex-1 gap-4">

16 <v-button

17 icon="search"

18 :title="$lang('global.search')"

19 :active="state.tab === 'search'"

20 @click="() => state.tab = 'search'"

21 ></v-button>

22 <v-button

23 icon="bookmarks"

24 :title="$lang('global.favorites')"

25 :active="state.tab === 'favorites'"

26 @click="() => state.tab = 'favorites'"

27 ></v-button>

28 </div>

29 <v-button

30 :text="state.account?.name"

31 icon="user"

32 :title="$lang('global.account')"

33 :active="state.tab === 'account'"

34 @click="() => state.tab = 'account'"

35 ></v-button>

36 </div>

37 </div>

38 `

39}