UNPKG

laif-ds

Version:

Design System di Laif con componenti React basati su principi di Atomic Design

20 lines (19 loc) 526 B
"use client"; import { checkBullet as l } from "./check-bullet.js"; function n(r) { const t = l(r), e = r.options.bulletOther; if (!e) return t === "*" ? "-" : "*"; if (e !== "*" && e !== "+" && e !== "-") throw new Error( "Cannot serialize items with `" + e + "` for `options.bulletOther`, expected `*`, `+`, or `-`" ); if (e === t) throw new Error( "Expected `bullet` (`" + t + "`) and `bulletOther` (`" + e + "`) to be different" ); return e; } export { n as checkBulletOther };