package com.cloudhandson.vpdbackoffice.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "backoffice.product")
public record ProductProperties(String name, String title, String dataLabel) {
  public String displayName() { return name == null || name.isBlank() ? "Data & AI Backoffice" : name; }
  public String pageTitle() { return title == null || title.isBlank() ? displayName() : title; }
  public String dataName() { return dataLabel == null || dataLabel.isBlank() ? "업무 데이터" : dataLabel; }
}
