mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-16 08:25:18 +02:00
22 lines
586 B
TypeScript
22 lines
586 B
TypeScript
|
|
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
|