<template>
  <div
    class="flex items-center justify-between bg-white px-4 py-3"
    :class="{ 'border-b': border }"
  >
    <div class="flex items-center">
      <img class="h-5 w-5" :src="isRemind ? remind : authority" alt="" />
      <div class="ml-2">{{ title }}</div>
    </div>

    <div class="flex items-center justify-between">
      <div class="flex items-center justify-between text-[#999]">
        <slot>
          <div>{{ subTitle }}</div>
        </slot>

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

<script setup lang="ts">
import back from '@assets/images/profile/back.png'
import authority from '@assets/images/moments/authority.png'
import remind from '@assets/images/moments/remind.png'

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

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