{"version":3,"file":"if.mjs","names":["If","props","condition","children"],"sources":["../src/if.tsx"],"sourcesContent":["import { UnknownProperties } from './core/index';\nimport { FC, ReactNode } from 'react';\n\n/** @deprecated */\nexport interface IIfProps extends IfProps, UnknownProperties {}\nexport type IfProps = {\n  condition: boolean;\n  children?: ReactNode;\n};\n\nconst If: FC<IIfProps> = (props) => {\n  const { condition, children } = props;\n  return (condition ? children : null) as ReturnType<FC>;\n};\n\nexport default If;\n"],"mappings":"AAGA;;AAOA,IAAMA,EAAgB,GAAG,SAAnBA,EAAgBA,CAAIC,KAAK,EAAK;EAClC,IAAQC,SAAS,GAAeD,KAAK,CAA7BC,SAAS;IAAEC,QAAQ,GAAKF,KAAK,CAAlBE,QAAQ;EAC3B,OAAQD,SAAS,GAAGC,QAAQ,GAAG,IAAI;AACrC,CAAC;AAED,eAAeH,EAAE"}