2025-06-11 00:14:17 +02:00
|
|
|
import { LocalDatabaseNode } from '@colanode/client/types';
|
2025-11-18 11:07:58 -08:00
|
|
|
import { NodeRole } from '@colanode/core';
|
2025-06-11 00:14:17 +02:00
|
|
|
import { Database } from '@colanode/ui/components/databases/database';
|
|
|
|
|
import { DatabaseViews } from '@colanode/ui/components/databases/database-views';
|
2024-09-02 08:43:10 +02:00
|
|
|
|
2024-10-22 23:27:54 +02:00
|
|
|
interface DatabaseContainerProps {
|
2025-11-18 11:07:58 -08:00
|
|
|
database: LocalDatabaseNode;
|
|
|
|
|
role: NodeRole;
|
2024-09-02 08:43:10 +02:00
|
|
|
}
|
|
|
|
|
|
2025-11-18 11:07:58 -08:00
|
|
|
export const DatabaseContainer = ({
|
|
|
|
|
database,
|
|
|
|
|
role,
|
|
|
|
|
}: DatabaseContainerProps) => {
|
2024-09-13 14:05:30 +02:00
|
|
|
return (
|
2025-11-11 09:49:16 -08:00
|
|
|
<Database database={database} role={role}>
|
|
|
|
|
<DatabaseViews />
|
|
|
|
|
</Database>
|
2024-09-13 14:05:30 +02:00
|
|
|
);
|
2024-09-02 08:43:10 +02:00
|
|
|
};
|