hunk.code_window:   props &&
     (is.fun(props) ? props(i, arg) : is.arr(props) ? props[i] : { ...props })
   /** Returns `true` if the given prop is having its default value set. */
   export const isDefaultProp = <T extends Lookup>(props: T, key: keyof T) =>
     !is.und(
       props.default === true ? props[key] : props.default && props.default[key]
     )
   export const mergeDefaultProps = (
     defaultProps: Lookup,
  
hunk.labels: keep keep keep keep replace replace replace replace keep keep keep
hunk.after_edit: export const hasDefaultProp = <T extends Lookup>(props: T, key: keyof T) =>
     !is.und(getDefaultProp(props, key))
   /** Get the default value being set for the given `key` */
   export const getDefaultProp = <T extends Lookup>(props: T, key: keyof T) =>
     props.default === true
       ? props[key]
       : props.default
       ? props.default[key]
       : undefined
  
hunk.file_path: packages/core/src/helpers.ts
hunk.type: replace
file: import { normalizeColor } from './normalizeColor'
  
  export function colorToRgba(input: string) {
    let int32Color = normalizeColor(input)
    if (int32Color === null) return input
    int32Color = int32Color || 0
    let r = (int32Color & 0xff000000) >>> 24
    let g = (int32Color & 0x00ff0000) >>> 16
    let b = (int32Color & 0x0000ff00) >>> 8
    let a = (int32Color & 0x000000ff) / 255
    return `rgba(${r}, ${g}, ${b}, ${a})`
  }
  