mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-11 10:57:38 +03:00
21 lines
626 B
TypeScript
21 lines
626 B
TypeScript
|
|
// Notifications Section Component
|
||
|
|
// Reusable for both global and camera-level notification settings
|
||
|
|
|
||
|
|
import { createConfigSection, type SectionConfig } from "./BaseSection";
|
||
|
|
|
||
|
|
// Configuration for the notifications section
|
||
|
|
export const notificationsSectionConfig: SectionConfig = {
|
||
|
|
fieldOrder: ["enabled", "email"],
|
||
|
|
fieldGroups: {},
|
||
|
|
hiddenFields: ["enabled_in_config"],
|
||
|
|
advancedFields: [],
|
||
|
|
};
|
||
|
|
|
||
|
|
export const NotificationsSection = createConfigSection({
|
||
|
|
sectionPath: "notifications",
|
||
|
|
translationKey: "configForm.notifications",
|
||
|
|
defaultConfig: notificationsSectionConfig,
|
||
|
|
});
|
||
|
|
|
||
|
|
export default NotificationsSection;
|