import { Background, Flex, Padding, Spacing, Text } from '@/@dble_layout'; import { css, keyframes } from '@emotion/react'; import { useRef } from 'react'; import WidgetContainer from './_WidgetContainer'; const rotateY = keyframes` 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } `; const rotatingDivStyle = css` display: inline-block; animation: ${rotateY} 1.5s linear infinite; animation-timing-function: linear; `; export const 구매완료 = () => { const divRef = useRef(null); // useEffect(() => { // const interval = setInterval(() => { // if (divRef.current) { // divRef.current.style.animationPlayState = 'running'; // setTimeout(() => { // if (divRef.current) { // divRef.current.style.animationPlayState = 'paused'; // } // }, 1000); // Pause after 1 second of running // } // }, 1100); // Total cycle time: 1s running + 0.1s paused // return () => clearInterval(interval); // }, []); return (
결제를 완료했어요! 주문번호는 1234567890 이에요
); };