mirror of
https://github.com/makeplane/plane.git
synced 2025-12-19 13:19:31 +01:00
22 lines
565 B
TypeScript
22 lines
565 B
TypeScript
|
|
import { useState } from "react";
|
||
|
|
|
||
|
|
// components
|
||
|
|
import { CreateInboxIssueModal } from "components/inbox";
|
||
|
|
// ui
|
||
|
|
import { Button } from "@plane/ui";
|
||
|
|
// icons
|
||
|
|
import { Plus } from "lucide-react";
|
||
|
|
|
||
|
|
export const ProjectInboxHeader = () => {
|
||
|
|
const [createIssueModal, setCreateIssueModal] = useState(false);
|
||
|
|
|
||
|
|
return (
|
||
|
|
<>
|
||
|
|
<CreateInboxIssueModal isOpen={createIssueModal} onClose={() => setCreateIssueModal(false)} />
|
||
|
|
<Button onClick={() => setCreateIssueModal(true)} size="sm" prependIcon={<Plus />}>
|
||
|
|
Add Issue
|
||
|
|
</Button>
|
||
|
|
</>
|
||
|
|
);
|
||
|
|
};
|