> ## Documentation Index
> Fetch the complete documentation index at: https://styleguide-nextjs.2smooth.io/llms.txt
> Use this file to discover all available pages before exploring further.

# dependencies

export const CLASSIFICATION_TERMS = {
  positive: {
    must: '+MUST',
    should: '+SHOULD',
    optional: '+OPTIONAL'
  },
  negative: {
    must: '-MUST',
    should: '-SHOULD',
    optional: '-OPTIONAL'
  }
};

export const TextHighlight = ({text = '', positive = false, negative = false}) => {
  let textColor = undefined;
  let bgColor = undefined;
  if (positive) {
    textColor = 'black';
    bgColor = 'oklch(72.77% 0.1798 128.27)';
  }
  if (negative) {
    textColor = 'black';
    bgColor = 'oklch(51.73% 0.2119 28.74)';
  }
  return <div style={{
    display: 'inline-block',
    fontWeight: 'bold',
    paddingLeft: '4px',
    paddingRight: '4px',
    border: '1px solid',
    borderRadius: '8px',
    color: textColor,
    backgroundColor: bgColor
  }}>
      {text}
    </div>;
};

* การเลือก package
  * <TextHighlight positive text={ CLASSIFICATION_TERMS.positive.must } /> จะต้อง stable (ล่าสุดอาจยังไม่ stable กรุณาทำการอ่าน documentation ทุกครั้งก่อนเลือก version)
  * <TextHighlight negative text={ CLASSIFICATION_TERMS.negative.should } /> ไม่เก่า (update ล่าสุดไม่เกิน 1 ปี)
  * <TextHighlight negative text={ CLASSIFICATION_TERMS.negative.should } /> ยังไม่ deprecated

* <TextHighlight positive text={ CLASSIFICATION_TERMS.positive.must } /> packages ที่ใช้ จะต้องใช้ version ตามที่ระบุเท่านั้น
  * Ant Design
    ```sh theme={null}
    pnpm add -E antd@5.23.0
    ```
  * DayJS
    ```sh theme={null}
    pnpm add -E dayjs@1.11.13
    ```
  * Jotai
    ```sh theme={null}
    pnpm add -E jotai@2.11.0
    ```
  * React Query
    ```sh theme={null}
    pnpm add -E @tanstack/react-query@5.63.0
    ```
