mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-04 14:50:30 +08:00
19 lines
387 B
TypeScript
19 lines
387 B
TypeScript
|
|
import { cn } from '@/lib/utils';
|
||
|
|
import { HTMLAttributes, PropsWithChildren } from 'react';
|
||
|
|
|
||
|
|
export function NodeWrapper({
|
||
|
|
children,
|
||
|
|
className,
|
||
|
|
}: PropsWithChildren & HTMLAttributes<HTMLDivElement>) {
|
||
|
|
return (
|
||
|
|
<section
|
||
|
|
className={cn(
|
||
|
|
'bg-background-header-bar p-2.5 rounded-md w-[200px]',
|
||
|
|
className,
|
||
|
|
)}
|
||
|
|
>
|
||
|
|
{children}
|
||
|
|
</section>
|
||
|
|
);
|
||
|
|
}
|