mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
50 lines
1.2 KiB
TypeScript
50 lines
1.2 KiB
TypeScript
import { HStack, SpanBox } from '../../elements/LayoutPrimitives'
|
|
import { SplitButton } from '../../elements/SplitButton'
|
|
import { PrimaryDropdown } from '../PrimaryDropdown'
|
|
import { LIBRARY_LEFT_MENU_WIDTH } from './LibraryMenu'
|
|
|
|
type NavMenuFooterProps = {
|
|
setShowAddLinkModal?: (show: true) => void
|
|
}
|
|
|
|
export const NavMenuFooter = (props: NavMenuFooterProps): JSX.Element => {
|
|
return (
|
|
<HStack
|
|
css={{
|
|
gap: '10px',
|
|
height: '65px',
|
|
position: 'fixed',
|
|
bottom: '0%',
|
|
alignItems: 'center',
|
|
|
|
backgroundColor: '$thBackground2',
|
|
width: LIBRARY_LEFT_MENU_WIDTH,
|
|
overflowY: 'auto',
|
|
overflowX: 'hidden',
|
|
'&::-webkit-scrollbar': {
|
|
display: 'none',
|
|
},
|
|
'@mdDown': {
|
|
width: '100%',
|
|
},
|
|
}}
|
|
>
|
|
<PrimaryDropdown showThemeSection={true} />
|
|
<SpanBox
|
|
css={{
|
|
marginLeft: 'auto',
|
|
marginRight: '15px',
|
|
}}
|
|
>
|
|
{props.setShowAddLinkModal && (
|
|
<SplitButton
|
|
title="Add"
|
|
setShowLinkMode={() => {
|
|
props.setShowAddLinkModal && props.setShowAddLinkModal(true)
|
|
}}
|
|
/>
|
|
)}
|
|
</SpanBox>
|
|
</HStack>
|
|
)
|
|
}
|