<template>
  <div
    class="flex items-center justify-between bg-white px-4 py-3"
    :class="{ 'border-b': border }"
  >
    <div class="flex items-center">
      <div class="h-[24px] w-[24px]">
        <img v-if="isSelect" class="h-[24px] w-[24px]" :src="select" />
      </div>

      <div class="ml-3 flex flex-col items-start">
        <div>{{ title }}</div>
        <div class="text-sm text-sub-text">{{ subTitle }}</div>
        <div class="text-sm text-primary">{{ selectList }}</div>
      </div>
    </div>

    <img v-if="arrow" class="h-[24px] w-[24px]" :src="back" />
  </div>
</template>

<script setup lang="ts">
import back from '@assets/images/profile/back.png'
import select from '@assets/images/setting/select.png'

type SettingItemProps = {
  title: string
  arrow?: boolean
  isSelect?: boolean
  border?: boolean
  subTitle?: string
  selectList?: string
}
defineProps<SettingItemProps>()
</script>

<style lang="scss" scoped></style>
