import type { ConfigTabLabel } from "../editorCore"; type TopNavTabsProps = { contentTypes: string[]; configTabLabels: ConfigTabLabel[]; activeSection: "content" | "config"; activeType: string; activeConfigTab: ConfigTabLabel; hasPendingRecordChanges: boolean; isLoading: boolean; isSaving: boolean; formatTypeLabel: (type: string) => string; onError: (message: string) => void; onSetActiveSection: (section: "content" | "config") => void; onSetActiveType: (type: string) => void; onSetActiveConfigTab: (label: ConfigTabLabel) => void; }; export default function TopNavTabs(props: TopNavTabsProps) { const { contentTypes, configTabLabels, activeSection, activeType, activeConfigTab, hasPendingRecordChanges, isLoading, isSaving, formatTypeLabel, onError, onSetActiveSection, onSetActiveType, onSetActiveConfigTab, } = props; return (
Content
Configuration