Files
imphnen-frontend-service/apps/gacha/src/app/page.tsx
T

32 lines
838 B
TypeScript
Raw Normal View History

2025-03-16 22:18:48 +07:00
import { Button } from '@imphnen-frontend-service/ui/atoms';
2025-03-16 06:38:14 +07:00
import { LandingPage } from '@imphnen-frontend-service/ui/organisms';
2025-03-16 22:18:48 +07:00
import { FC, ReactElement, useState } from 'react';
import { createPortal } from 'react-dom';
import { ModalsGacha } from "@imphnen-frontend-service/ui/organisms"
2025-03-13 02:03:13 +07:00
export const Components: FC = (): ReactElement => {
2025-03-16 22:18:48 +07:00
const [showModal, setShowModal] = useState(false)
2025-03-16 06:38:14 +07:00
return (
<>
<LandingPage />
2025-03-16 22:18:48 +07:00
{/**Izin pake untuk debug modals gacha */}
<div>
<p>Debug : Test Modals Gacha</p>
<Button onClick={
() => setShowModal(true)
}>Tekan</Button>
</div>
{showModal && createPortal(
<ModalsGacha></ModalsGacha>,
document.body
)}
{/**Izin pake untuk debug modals gacha */}
2025-03-16 06:38:14 +07:00
</>
);
2025-03-13 02:03:13 +07:00
};
export default Components;