mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
IssueDetailPane component
This commit is contained in:
18
packages/frontend/src/components/issue-detail-pane.tsx
Normal file
18
packages/frontend/src/components/issue-detail-pane.tsx
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
import type { IssueRecord } from "@issue/shared";
|
||||||
|
import { Button } from "@/components/ui/button";
|
||||||
|
import { X } from "lucide-react";
|
||||||
|
|
||||||
|
export function IssueDetailPane({ issue, close }: { issue: IssueRecord; close: () => void }) {
|
||||||
|
return (
|
||||||
|
<div className="flex flex-col items-end">
|
||||||
|
<Button variant={"dummy"} onClick={close} className="px-0 py-0 w-6 h-6">
|
||||||
|
<X />
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<div className="flex flex-col w-full p-2 gap-2">
|
||||||
|
<h1 className="text-md">{issue.title}</h1>
|
||||||
|
<p className="text-sm">{issue.description}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user