{"version":3,"file":"OptionalPortal.mjs","sources":["../../../src/components/Portal/OptionalPortal.tsx"],"sourcesContent":["import { Portal, PortalProps } from './Portal';\n\nexport interface OptionalPortalProps extends PortalProps {\n  /** Determines whether children should be rendered inside `<Portal />` */\n  withinPortal?: boolean;\n}\n\nexport function OptionalPortal({ withinPortal = true, children, ...others }: OptionalPortalProps) {\n  if (withinPortal) {\n    return <Portal {...others}>{children}</Portal>;\n  }\n\n  return <>{children}</>;\n}\n\nOptionalPortal.displayName = '@raikou/core/OptionalPortal';\n"],"names":[],"mappings":";;;AAOO,SAAS,eAAe,EAAE,YAAA,GAAe,MAAM,QAAU,EAAA,GAAG,QAA+B,EAAA;AAChG,EAAA,IAAI,YAAc,EAAA;AAChB,IAAA,uBAAQ,GAAA,CAAA,MAAA,EAAA,EAAQ,GAAG,MAAA,EAAS,QAAS,EAAA,CAAA;AAAA;AAGvC,EAAA,uCAAU,QAAS,EAAA,CAAA;AACrB;AAEA,cAAA,CAAe,WAAc,GAAA,6BAAA;;;;"}