UNPKG

696 BJavaScriptView Raw
1"use client";
2
3import * as React from 'react';
4import classNames from 'classnames';
5import FigureImage from './FigureImage';
6import FigureCaption from './FigureCaption';
7import { useBootstrapPrefix } from './ThemeProvider';
8import { jsx as _jsx } from "react/jsx-runtime";
9const Figure = /*#__PURE__*/React.forwardRef(({
10 className,
11 bsPrefix,
12 as: Component = 'figure',
13 ...props
14}, ref) => {
15 bsPrefix = useBootstrapPrefix(bsPrefix, 'figure');
16 return /*#__PURE__*/_jsx(Component, {
17 ref: ref,
18 className: classNames(className, bsPrefix),
19 ...props
20 });
21});
22Figure.displayName = 'Figure';
23export default Object.assign(Figure, {
24 Image: FigureImage,
25 Caption: FigureCaption
26});
\No newline at end of file