diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-10-18 00:53:28 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-10-18 00:53:28 +0200 |
commit | 01d432e34c7c59a1d9d3c4c6ff8155a17e3fc00a (patch) | |
tree | 47e101b8e3baadbdd29f0977a22fddadcef361a3 /components/Sidebar/Title.tsx | |
parent | 92f465fbe2dd66576f902b65171da6116e29f1c2 (diff) | |
parent | ca5cfb62c1cc1e2850103ba13ede59380e6808ba (diff) |
Merge pull request #125 from org-roam/feat/exclusion
feat: exclude nodes from local graph (#115)
Diffstat (limited to 'components/Sidebar/Title.tsx')
-rw-r--r-- | components/Sidebar/Title.tsx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/components/Sidebar/Title.tsx b/components/Sidebar/Title.tsx new file mode 100644 index 0000000..5d39190 --- /dev/null +++ b/components/Sidebar/Title.tsx @@ -0,0 +1,25 @@ +import { Flex, Heading } from '@chakra-ui/react' +import React from 'react' +import { BiFile } from 'react-icons/bi' + +import { OrgRoamNode } from '../../api' +export interface TitleProps { + previewNode: OrgRoamNode +} + +export const Title = (props: TitleProps) => { + const { previewNode } = props + return ( + <Flex maxW="90%"> + {/* <BiFile + * // onContextMenu={(e) => { + * // e.preventDefault() + * // openContextMenu(previewNode, e) + * // }} + * /> */} + <Heading lineHeight={1.2} size="md" fontWeight={600} pt={4}> + {previewNode?.title} + </Heading> + </Flex> + ) +} |