dograh/ui/src/app/workflow/WorkflowLayout.tsx

22 lines
586 B
TypeScript
Raw Normal View History

2025-09-09 14:37:32 +05:30
import React, { ReactNode } from 'react'
import BaseHeader from '@/components/header/BaseHeader'
interface WorkflowLayoutProps {
children: ReactNode,
headerActions?: ReactNode,
backButton?: ReactNode,
showFeaturesNav?: boolean
}
const WorkflowLayout: React.FC<WorkflowLayoutProps> = ({ children, headerActions, backButton, showFeaturesNav = true }) => {
return (
<>
<BaseHeader headerActions={headerActions} backButton={backButton} showFeaturesNav={showFeaturesNav} />
{children}
</>
)
}
export default WorkflowLayout