blob: 403d5439f6f3cfb78f173e4a0cab1a2b66003b89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { type ForwardRefRenderFunction, forwardRef } from 'react';
import { MetaList, type MetaListProps } from '../meta-list';
import styles from './card.module.scss';
export type CardMetaProps = MetaListProps;
const CardMetaWithRef: ForwardRefRenderFunction<
HTMLDListElement,
CardMetaProps
> = ({ className = '', ...props }, ref) => {
const metaClass = `${styles.meta} ${className}`;
return <MetaList {...props} className={metaClass} ref={ref} />;
};
export const CardMeta = forwardRef(CardMetaWithRef);
|