{"version":3,"file":"omitUndefinedProps.mjs","names":[],"sources":["../../../../src/components/MessageList/omitUndefinedProps.ts"],"sourcesContent":["/**\n * Keeps only the props that are set. A component override that sets a prop and then spreads its\n * props (`<Message showAvatar {...props} />`) keeps its own value.\n */\nexport const omitUndefinedProps = <Props extends object>(props: Props = {} as Props) =>\n  Object.fromEntries(\n    Object.entries(props).filter(([, value]) => value !== undefined),\n  ) as Partial<Props>;\n"],"mappings":";;;;;AAIA,IAAa,sBAA4C,QAAe,CAAC,MACvE,OAAO,YACL,OAAO,QAAQ,KAAK,CAAC,CAAC,QAAQ,GAAG,WAAW,UAAU,KAAA,CAAS,CACjE"}