import { Image, Text, View } from '@tarojs/components'
import { useState } from 'react'
import styles from './index.module.scss'
import ColorCardList from './components/colorCardList'
import CutSampleList from './components/cutSampleList'
import SelectList from '@/components/selectList'

export default () => {
  const [selectIndex, setSelectIndex] = useState(1)
  const selectList = [
    { value: 1, label: '色卡记录' },
    { value: 2, label: '剪样记录' },
  ]

  return <View className={styles.main}>
    <SelectList list={selectList} defaultIndex={selectIndex} onSelect={index => setSelectIndex(index)} />
    {selectIndex == 1 ? <ColorCardList /> : <CutSampleList />}
  </View>
}
