mirror of
https://github.com/colanode/colanode.git
synced 2025-12-16 11:47:47 +01:00
21 lines
538 B
TypeScript
21 lines
538 B
TypeScript
import { LocalDatabaseNode } from '@colanode/client/types';
|
|
import { NodeRole } from '@colanode/core';
|
|
import { Database } from '@colanode/ui/components/databases/database';
|
|
import { DatabaseViews } from '@colanode/ui/components/databases/database-views';
|
|
|
|
interface DatabaseContainerProps {
|
|
database: LocalDatabaseNode;
|
|
role: NodeRole;
|
|
}
|
|
|
|
export const DatabaseContainer = ({
|
|
database,
|
|
role,
|
|
}: DatabaseContainerProps) => {
|
|
return (
|
|
<Database database={database} role={role}>
|
|
<DatabaseViews />
|
|
</Database>
|
|
);
|
|
};
|