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

|                        ระดับความสำคัญ                       |                                         เชิงบวก                                         |                                            เชิงลบ                                           |
| :---------------------------------------------------------: | :-------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------: |
|    <TextHighlight text={'MUST'} /> บังคับ ไม่มีข้อโต้แย้ง   |       <TextHighlight positive text={ CLASSIFICATION_TERMS.positive.must } /> ต้อง       |     <TextHighlight negative text={ CLASSIFICATION_TERMS.negative.must } /> ไม่ต้อง, ห้าม    |
|    <TextHighlight text={'SHOULD'} /> บังคับ แนวทางปฎิบัติ   |  <TextHighlight positive text={ CLASSIFICATION_TERMS.positive.should } /> ควร, ต้องการ  | <TextHighlight negative text={ CLASSIFICATION_TERMS.negative.should } /> ไม่ควร, หลีกเลี่ยง |
| <TextHighlight text={'OPTIONAL'} /> ไม่บังคับ ทำ/ไม่ทำก็ได้ | <TextHighlight positive text={ CLASSIFICATION_TERMS.positive.optional } /> อาจจะ, แนะนำ |     <TextHighlight negative text={ CLASSIFICATION_TERMS.negative.optional } /> ไม่แนะนำ     |
