revamp template

This commit is contained in:
fro1991
2025-02-01 16:44:51 +07:00
parent c432df568a
commit 276a289580
1212 changed files with 112762 additions and 0 deletions

View File

@ -0,0 +1,21 @@
import { forwardRef, ReactNode, CSSProperties } from 'react';
interface IModalBodyProps {
className?: string;
children: ReactNode;
tabIndex?: number;
style?: CSSProperties; // Accept inline styles as a prop
}
// Forwarding ref to ensure this component can hold a ref
const ModalBody = forwardRef<HTMLDivElement, IModalBodyProps>(
({ className, children, style, tabIndex = -1 }, ref) => {
return (
<div ref={ref} tabIndex={tabIndex} className={`modal-body ${className}`} style={style}>
{children}
</div>
);
}
);
export { ModalBody };