mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00: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>
|
||
|
</>
|
||
|
);
|
||
|
};
|