danmu-sim/app/danmu/page.tsx
2024-04-07 01:53:46 +08:00

31 lines
991 B
TypeScript

import { getToken } from "@/lib/actions/token";
import Controls from "./controls";
import { Danmu } from "./danmu";
export default async function Page() {
const token = await getToken();
return (
<div className="flex flex-col md:flex-row">
<section className="basis-1/3 card">
<div className="card-body max-h-[50vh] overflow-auto"></div>
</section>
<section className="basis-1/3 card">
<div className="card-body max-h-[50vh] overflow-auto"></div>
</section>
<section className="basis-1/3 card">
<div className="card-body">
<div className="mockup-browser border">
<div className="mockup-browser-toolbar">
<div className="input"></div>
</div>
<div className="divide-y divide-gray-300">
<Controls />
<Danmu token={token} />
</div>
</div>
</div>
</section>
</div>
);
}