cherry2250 4df7ba0697 인증 영역 개발 완료 (로그인, 회원가입, 프로필 관리)
- 로그인 페이지: 이메일 + 비밀번호 로그인, 소셜 로그인 버튼
- 회원가입 페이지: 3단계 funnel (계정정보, 개인정보, 사업장정보)
- 프로필 관리 페이지: 기본정보/매장정보 수정, 비밀번호 변경, 로그아웃
- MUI v6 + React Hook Form + Zod 검증
- Next.js 14 App Router, TypeScript 5

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 11:27:15 +09:00

28 lines
604 B
TypeScript

'use client';
import { Snackbar, Alert } from '@mui/material';
import { useUIStore } from '@/stores/uiStore';
export function Toast() {
const { toast, hideToast } = useUIStore();
return (
<Snackbar
open={toast.open}
autoHideDuration={3000}
onClose={hideToast}
anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}
sx={{ bottom: { xs: 80, sm: 24 } }}
>
<Alert
onClose={hideToast}
severity={toast.severity}
variant="filled"
sx={{ width: '100%' }}
>
{toast.message}
</Alert>
</Snackbar>
);
}