<template>
    <view class="client-card">
        <view class="left">
            <view class="name">广东省星星新能源有限公司</view>
            <view class="info">
                <text>联系人：kaeery</text>
                <text>联系电话：18138952909</text>
            </view>
        </view>
        <view class="right">
            <slot />
        </view>
    </view>
</template>

<script setup lang="ts">
import { PropType } from 'vue'

interface IClient {
    id: number
    name: string
}
defineProps({
    item: {
        type: Object as PropType<IClient>,
        default: () => ({})
    }
})
</script>

<style lang="scss" scoped>
.client-card {
    @include flex-center(space-between);
    padding: 32rpx 24rpx;
    background-color: $white-1;
    border-radius: 12rpx;
    .left {
        .name {
            font-weight: 700;
        }
        .info {
            @include flex-direction;
            gap: 20rpx;
            margin-top: 28rpx;
            font-size: 28rpx;
            color: $gray-2;
        }
    }
}
</style>
