A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal
blob: 05ed089216772437902a5e59f0222e06e6e2ebc3 (1278 bytes)[doc][blame][raw]
1
import {$lang} from '../utils.js';2
import VButton from '../element/button.js';4
export default {5
props: ['state'],6
components: {7
VButton8
},9
methods: {10
$lang11
},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-button17
icon="search"18
:title="$lang('global.search')"19
:active="state.tab === 'search'"20
@click="() => state.tab = 'search'"21
></v-button>22
<v-button23
icon="bookmarks"24
:title="$lang('global.favorites')"25
:active="state.tab === 'favorites'"26
@click="() => state.tab = 'favorites'"27
></v-button>28
</div>29
<v-button30
:text="state.account.username"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
}