重构项目详情页面
This commit is contained in:
25
src/components/layout/MainContentArea.tsx
Normal file
25
src/components/layout/MainContentArea.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import React, { ReactNode } from 'react';
|
||||
import { cn } from '@/lib/utils';
|
||||
|
||||
interface MainContentAreaProps {
|
||||
children: ReactNode;
|
||||
className?: string;
|
||||
isEditing?: boolean;
|
||||
}
|
||||
|
||||
export const MainContentArea: React.FC<MainContentAreaProps> = ({
|
||||
children,
|
||||
className,
|
||||
isEditing = false
|
||||
}) => {
|
||||
return (
|
||||
<div className={cn(
|
||||
'h-full w-full flex flex-col',
|
||||
'bg-background',
|
||||
isEditing && 'relative',
|
||||
className
|
||||
)}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
Reference in New Issue
Block a user