Files
hair-keeper/src/app/(main)/welcome.tsx

43 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
'use client'
import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
} from '@/components/ui/dialog'
import { Button } from '@/components/ui/button'
import { Sparkles } from 'lucide-react'
interface WelcomeDialogProps {
open: boolean
onOpenChange: (open: boolean) => void
}
/**
* 欢迎对话框组件
* 用于在首次进入系统时显示欢迎信息
*/
export function WelcomeDialog({ open, onOpenChange }: WelcomeDialogProps) {
return (
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="sm:max-w-[500px]">
<DialogHeader>
<div className="flex items-center gap-2">
<Sparkles className="h-6 w-6 text-primary" />
<DialogTitle className="text-2xl"></DialogTitle>
</div>
<DialogDescription className="pt-4 text-base">
Hair Keeper
</DialogDescription>
</DialogHeader>
<div className="flex justify-end gap-2 pt-4">
<Button onClick={() => onOpenChange(false)}>
使
</Button>
</div>
</DialogContent>
</Dialog>
)
}