forked from cerc-io/cosmos-explorer
22 lines
382 B
Vue
22 lines
382 B
Vue
<script lang="ts" setup>
|
|
import { useFormatter } from '@/stores';
|
|
import type { Coin } from '@/types';
|
|
|
|
const props = defineProps({
|
|
value: { type: Array<Coin>},
|
|
})
|
|
|
|
const format = useFormatter()
|
|
|
|
</script>
|
|
<template>
|
|
<div>
|
|
{{ format.formatTokens(value, true, "0,0.[000000]") }}
|
|
</div>
|
|
</template>
|
|
<script lang="ts">
|
|
export default {
|
|
name: 'ArrayCoinElement'
|
|
}
|
|
</script>
|