From df1a5a690e2a37b26c8b113638b6b1d3917fb9c3 Mon Sep 17 00:00:00 2001 From: Choi JunHo Date: Fri, 2 Aug 2024 17:17:57 +0900 Subject: [PATCH] Refactor: Test page --- src/ui/pages/maru-egg.tsx | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/src/ui/pages/maru-egg.tsx b/src/ui/pages/maru-egg.tsx index 08e4f7f..9233107 100644 --- a/src/ui/pages/maru-egg.tsx +++ b/src/ui/pages/maru-egg.tsx @@ -1,22 +1,51 @@ import React from 'react'; import Header from '../components/molecule/user/header/header'; -import useTypeStore from '../../store/store'; +import useTypeStore from '../../store/type-store'; +import ChatCard from '../components/atom/chat-card/chat-card'; +import ChatForm from '../components/molecule/user/chat-form/chat-form'; +import useChatStore from '../../store/chat-store'; const MaruEgg: React.FC = () => { const { setSelectedType, type } = useTypeStore(); + const { messages } = useChatStore(); const handleButtonClick = (selectedType: 'SUSI' | 'PYEONIP' | 'JEONGSI') => { setSelectedType(selectedType); }; return (
-
-
+ +
+ + {type !== null && ( + + )} + {type !== null && ( + + )} + {messages.map((msg, index) => { + return ; + })}
+ {type !== null && ( +
+ +
+ )}
); };