mirror of
https://github.com/ktds-dg0501/kt-event-marketing-fe.git
synced 2025-12-06 05:36:23 +00:00
- 로그인 페이지: 이메일 + 비밀번호 로그인, 소셜 로그인 버튼 - 회원가입 페이지: 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>
28 lines
604 B
TypeScript
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>
|
|
);
|
|
}
|