frigate/web/src/components/config-form/sections/TimestampSection.tsx

20 lines
544 B
TypeScript
Raw Normal View History

// Timestamp Section Component
// Reusable for both global and camera-level timestamp_style settings
2026-01-23 19:04:50 +03:00
import { createConfigSection } from "./BaseSection";
export const TimestampSection = createConfigSection({
sectionPath: "timestamp_style",
2026-01-23 19:04:50 +03:00
i18nNamespace: "config/timestamp_style",
defaultConfig: {
2026-01-29 19:07:31 +03:00
fieldOrder: ["position", "format", "color", "thickness"],
2026-01-23 19:04:50 +03:00
fieldGroups: {
2026-01-29 19:07:31 +03:00
appearance: ["color", "thickness"],
2026-01-23 19:04:50 +03:00
},
hiddenFields: ["enabled_in_config"],
2026-01-29 19:07:31 +03:00
advancedFields: [],
2026-01-23 19:04:50 +03:00
},
});
export default TimestampSection;