import type { Aes } from "../gg"; export const defineGroupAccessor = (aes: Aes, allowUndefined = false) => { if (!aes && allowUndefined) return undefined return ( aes?.fill || aes?.stroke || aes?.strokeDasharray || aes?.group || (allowUndefined ? undefined : () => '__group') ) }