mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-23 22:25:56 -04:00
22 lines
500 B
TypeScript
22 lines
500 B
TypeScript
import React, { ForwardedRef, forwardRef, ReactNode } from 'react';
|
|
import styles from './ModalFooter.css';
|
|
|
|
interface ModalFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
children: ReactNode;
|
|
}
|
|
|
|
const ModalFooter = forwardRef(
|
|
(
|
|
{ children, ...otherProps }: ModalFooterProps,
|
|
ref: ForwardedRef<HTMLDivElement>
|
|
) => {
|
|
return (
|
|
<div ref={ref} className={styles.modalFooter} {...otherProps}>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|
|
);
|
|
|
|
export default ModalFooter;
|