~bigbes/lethe

ref: e075b986729b67f2afc74b4c069d1793e1f63cea lethe/web/src/shell/SubBar.tsx -rw-r--r-- 394 bytes
e075b986 — Eugene Blikh web: projects index route with real /projects data a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import React from 'react'

interface SubBarProps {
  children?: React.ReactNode
  right?: React.ReactNode
}

export function SubBar({ children, right }: SubBarProps): React.JSX.Element {
  if (children == null && right == null) {
    return <></>
  }
  return (
    <div className="subbar">
      {children}
      {right != null && <div className="subbar-right">{right}</div>}
    </div>
  )
}