mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
39 lines
874 B
TypeScript
39 lines
874 B
TypeScript
import {
|
|
ModuleGrid,
|
|
ModuleGridContent,
|
|
ModuleGridHeader,
|
|
ModuleGridTitle,
|
|
} from '@session/ui/components/ModuleGrid';
|
|
import { type ReactNode } from 'react';
|
|
import { InfoNodeCardSkeleton } from '@/components/InfoNodeCard';
|
|
|
|
export default function NodesListModule({
|
|
title,
|
|
children,
|
|
headerItems,
|
|
}: {
|
|
title: string;
|
|
children: ReactNode;
|
|
headerItems?: ReactNode;
|
|
}) {
|
|
return (
|
|
<ModuleGrid variant="section" colSpan={2} className="h-full">
|
|
<ModuleGridHeader>
|
|
<ModuleGridTitle>{title}</ModuleGridTitle>
|
|
{headerItems}
|
|
</ModuleGridHeader>
|
|
<ModuleGridContent className="h-full md:overflow-y-auto">{children}</ModuleGridContent>
|
|
</ModuleGrid>
|
|
);
|
|
}
|
|
|
|
export function NodesListSkeleton() {
|
|
return (
|
|
<>
|
|
<InfoNodeCardSkeleton />
|
|
<InfoNodeCardSkeleton />
|
|
<InfoNodeCardSkeleton />
|
|
</>
|
|
);
|
|
}
|