<!-- src/components/AppButtons -->
<script setup lang="ts">
import { reactive } from 'vue'
import AppButton from './AppButton.vue'
const buttons = reactive([
'Rad', 'Deg', 'x!', '(', ')',
'%', 'AC', 'Inv', 'sin', 'ln',
'7', '8', '9', 'รท', 'ฯ',
'cos', 'log', '4', '5', '6',
'ร', 'e', 'tan', 'โ', '1',
'2', '3', '-', 'Ans', 'EXP',
'x<sup>y</sup>', '0', '.', '=', '+'])
</script>
<template>
<div class="grid grid-cols-7 grid-rows-5 gap-[6px]">
<div class="col-span-2 flex justify-between items-center bg-complex rounded">
<app-button :symbol="buttons[0]"></app-button>
<div class="bg-gray-400 h-4/6 w-[1px]"></div>
<app-button :symbol="buttons[1]"></app-button>
</div>
<div
v-for="(button, i) in buttons.slice(2)"
:key="i">
<app-button :symbol="button"></app-button>
</div>
</div>
</template>