> ## 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.

# การตั้งชื่อ

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>;
};

* [Case Style](https://betterprogramming.pub/string-case-styles-camel-pascal-snake-and-kebab-case-981407998841)

|      Style     |  ประเภทตัวแปร  |
| :------------: | :------------: |
|   PascalCase   |      class     |
|                |    interface   |
|                |      type      |
|                |      enum      |
|                | ชื่อ component |
|  ------------- | -------------- |
|    camelCase   |    variable    |
|                |    argument    |
|                |    parameter   |
|                |    function    |
|                |     method     |
|  ------------- | -------------- |
| CONSTANT\_CASE |  global const  |
|  ------------- | -------------- |
|   kebab-case   |   ชื่อ folder  |
|                |    ชื่อ file   |
