Ручные правки

This commit is contained in:
2025-07-20 06:35:39 +03:00
parent 30a5526de2
commit 339bb52840
22 changed files with 1616 additions and 373 deletions

View File

@@ -1,6 +1,20 @@
import { FC } from 'react';
import { TemplateManager } from '../../../../components/TemplateManager/TemplateManager';
import { FC, useEffect } from 'react'
import { useParams } from 'react-router-dom'
import { TemplateManager } from '../../../../components/TemplateManager/TemplateManager'
import { useTemplateContext } from '../../../../contexts/TemplateContext'
export const TemplateSetup: FC = () => {
return <TemplateManager />;
};
const { templateId } = useParams<{ templateId: string }>()
const { templates } = useTemplateContext()
useEffect(() => {
if (templateId) {
const template = templates.find((t) => t.id === templateId)
if (template) {
console.log('Opening template for editing:', template)
}
}
}, [templateId, templates])
return <TemplateManager templateId={templateId} />
}