{"version":3,"file":"ModalBaseTitle.mjs","names":["classes"],"sources":["../../../src/components/ModalBase/ModalBaseTitle.tsx"],"sourcesContent":["import cx from 'clsx';\nimport { Box, BoxProps, ElementProps } from '../../core';\nimport { useModalBaseContext } from './ModalBase.context';\nimport { useModalTitle } from './use-modal-title-id';\nimport classes from './ModalBase.module.css';\n\nexport interface ModalBaseTitleProps extends BoxProps, ElementProps<'h2'> {}\n\nexport function ModalBaseTitle({ className, ...others }: ModalBaseTitleProps) {\n  const id = useModalTitle();\n  const ctx = useModalBaseContext();\n  return (\n    <Box\n      component=\"h2\"\n      className={cx({ [classes.title]: !ctx.unstyled }, className)}\n      id={id}\n      {...others}\n    />\n  );\n}\n\nModalBaseTitle.displayName = '@mantine/core/ModalBaseTitle';\n"],"mappings":";;;;;;;;AAQA,SAAgB,eAAe,EAAE,WAAW,GAAG,UAA+B;CAC5E,MAAM,KAAK,eAAe;CAC1B,MAAM,MAAM,qBAAqB;AACjC,QACE,oBAAC,KAAD;EACE,WAAU;EACV,WAAW,GAAG,GAAGA,yBAAQ,QAAQ,CAAC,IAAI,UAAU,EAAE,UAAU;EACxD;EACJ,GAAI;EACJ,CAAA;;AAIN,eAAe,cAAc"}