type AdminCellLineProps = {
  primary?: string | null;
  secondary?: string | null;
  separator?: string;
};

/** 表格单元格：主/副信息同一行完整展示 */
export function AdminCellLine({
  primary,
  secondary,
  separator = ' · ',
}: AdminCellLineProps) {
  const main = primary?.trim() || '—';
  const sub = secondary?.trim();

  return (
    <span className="admin-cell-line">
      {main}
      {sub ? (
        <span className="admin-cell-line-secondary">
          {separator}
          {sub}
        </span>
      ) : null}
    </span>
  );
}
