1 | "use client";
|
2 |
|
3 | import * as React from 'react';
|
4 | import classNames from 'classnames';
|
5 | import divWithClassName from './divWithClassName';
|
6 | import { useBootstrapPrefix } from './ThemeProvider';
|
7 | import { jsx as _jsx } from "react/jsx-runtime";
|
8 | const DivStyledAsH4 = divWithClassName('h4');
|
9 | const ModalTitle = React.forwardRef(({
|
10 | className,
|
11 | bsPrefix,
|
12 | as: Component = DivStyledAsH4,
|
13 | ...props
|
14 | }, ref) => {
|
15 | bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-title');
|
16 | return _jsx(Component, {
|
17 | ref: ref,
|
18 | className: classNames(className, bsPrefix),
|
19 | ...props
|
20 | });
|
21 | });
|
22 | ModalTitle.displayName = 'ModalTitle';
|
23 | export default ModalTitle; |
\ | No newline at end of file |