import { DiamondRuleEntity } from "../entity/DiamondRuleEntity"

@ComponentV2
export struct DiamondRuleItemView {
  @Param entity?: DiamondRuleEntity = undefined

  build() {
    Column() {
      Text(this.entity?.title).fontColor($r('app.color.color_1a1a1a')).fontSize(15).fontWeight(FontWeight.Medium)
      Text(this.entity?.desc).fontColor($r('app.color.color_666666')).fontSize(14).margin({top: 10})
    }
    .width('100%')
    .alignItems(HorizontalAlign.Start)
  }
}