import type { ReactNode } from 'react'

/** Ant Design Form requiredMark: * 대신 '필수' 뱃지 */
export function formRequiredMark(label: ReactNode, { required }: { required: boolean }) {
  if (!required) return label
  return (
    <>
      {label}
      <span className="form-req">필수</span>
    </>
  )
}
