Files
cargaMasiva_front/src/components/bootstrap-client.tsx
T
2025-06-12 22:39:35 -06:00

18 lines
392 B
TypeScript

'use client';
import { useEffect } from 'react';
export default function BootstrapClient() {
useEffect(() => {
const loadBootstrap = async () => {
if (typeof document !== 'undefined') {
// @ts-expect-error: Bootstrap is loaded dynamically
await import('bootstrap/dist/js/bootstrap.bundle.min.js');
}
};
loadBootstrap();
}, []);
return null;
}