💾 Archived View for iich.space › src › views › Header.ts captured on 2022-03-01 at 16:00:25.
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
import { Template } from '@/mission-control'; import { GEMINI } from '~/constants'; import { Board } from '~/db/models'; interface Props { board?: Board; } const BoardTitle: Template<{ board: Board }> = ({ when }, { board }) => ` /${board.name}/ ${when( board.description !== null && board.description.length > 0, () => ` ### ${board.description} `, )} `; const Header: Template<Props> = ({ include, when }, { board }): string => ` # ${GEMINI}ch${when(board !== undefined, () => include(BoardTitle, { board: board! }), )} `; export default Header;