import { Switch } from "@/components/ui/switch"; import { cn } from "@/lib/utils"; interface NotificationItem { id: string; title: string; description: string; enabled: boolean; } interface NotificationCategory { id: string; title: string; notifications: NotificationItem[]; } interface SettingsNotifications3Props { heading?: string; subHeading?: string; className?: string; categories?: NotificationCategory[]; } const SettingsNotifications3 = ({ heading = "اعلان‌ها", subHeading = "نحوه دریافت اعلان‌ها در بخش‌های مختلف را مدیریت کنید.", categories = [ { id: "activity", title: "فعالیت", notifications: [ { id: "comments", title: "نظرات", description: "وقتی کسی روی پست‌های شما نظر می‌گذارد یا به شما پاسخ می‌دهد.", enabled: true, }, { id: "mentions", title: "ارجاع‌ها", description: "وقتی هم‌تیمی شما را به یک لید، تیکت یا تسک ارجاع می‌دهد.", enabled: true, }, { id: "follows", title: "دنبال‌کنندگان جدید", description: "وقتی کسی شروع به دنبال کردن حساب شما می‌کند.", enabled: false, }, ], }, { id: "updates", title: "به‌روزرسانی‌ها", notifications: [ { id: "product-updates", title: "به‌روزرسانی محصول", description: "اخبار قابلیت‌ها و بهبودهای جدید.", enabled: true, }, { id: "tips", title: "نکات و آموزش‌ها", description: "محتوای مفید برای استفاده بهتر از پلتفرم.", enabled: false, }, ], }, { id: "account", title: "حساب", notifications: [ { id: "security", title: "هشدارهای امنیتی", description: "هشدارهای مهم درباره امنیت حساب شما.", enabled: true, }, { id: "billing", title: "به‌روزرسانی صورتحساب", description: "اعلان‌های مربوط به پرداخت‌ها و فاکتورها.", enabled: true, }, ], }, ], className, }: SettingsNotifications3Props) => { return (

{heading}

{subHeading}

{categories.map((category) => (

{category.title}

{category.notifications.map((notification) => (

{notification.title}

{notification.description}

))}
))}
); }; export { SettingsNotifications3 };