import { computed, defineComponent, ref, Transition } from 'vue' import AdderPageBack from './AdderPageBack' import useLayoutStore from '../useLayoutStore' import { OhVueIcon, addIcons } from 'oh-vue-icons' import { MdKeyboardcommandkey, FaCompass, FaPencilRuler } from 'oh-vue-icons/icons' import CustomAdder from './CustomAdder' addIcons(MdKeyboardcommandkey, FaCompass, FaPencilRuler) const ItemButton = defineComponent({ props: { name: { type: String, default: '' }, label: { type: String, default: '' }, active: { type: Boolean, default: false } }, emits: ['click'], setup(props, ctx) { const layout = useLayoutStore() const isGame = computed(() => layout.state.current === 0) return () => (