<template>
    <div class="empty-state">
        <img src="@/assets/images/undraw.png" alt="" />
        <div class="r">
            <p class="title">{{ title }}</p>
            <p class="text">{{ text }}</p>
        </div>
    </div>
</template>

<script setup lang="ts">
withDefaults(
    defineProps<{
        text?: string
        title?: string
    }>(),
    {
        title: '暂无数据',
        text: '暂无数据',
    },
)
</script>

<style scoped lang="scss">
.empty-state {
    display: flex;
    padding: 16px;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    /* background: #fff; */
    gap: 24px;
    /* box-shadow: 0px 5px 30px 0px rgba(5, 0, 1, 0.05); */

    img {
        width: 100px !important;
        height: 98px !important;
    }

    .title {
        color: #1a1a1a;
        font-family: Roboto;
        font-size: 16px;
        font-style: normal;
        font-weight: 600;
        line-height: 24px;
        margin-bottom: 8px;
    }
    .text {
        color: #474747;
        font-family: Roboto;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
        letter-spacing: 0.07px;
    }
}
</style>
