waveterm/frontend/app/tab/tab.tsx

28 lines
718 B
TypeScript
Raw Normal View History

2024-05-14 00:10:31 +02:00
// Copyright 2023, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
import * as React from "react";
import * as jotai from "jotai";
import { Block } from "../block/block.tsx";
2024-05-14 00:10:31 +02:00
import { v4 as uuidv4 } from "uuid";
import "./tab.less";
const TabContent = () => {
const blockId1 = React.useMemo(() => uuidv4(), []);
const blockId2 = React.useMemo(() => uuidv4(), []);
return (
<div className="tabcontent">
<div className="block-container block1">
<Block blockId={blockId1} />
</div>
<div className="block-container block2">
<Block blockId={blockId2} />
</div>
</div>
);
};
export { TabContent };