import { Template } from '@/mission-control'; import { Board } from '~/db/models'; interface Props { board: Board; } const Description = (board: Board) => board.description ? ` - ${board.description}` : ''; const BoardItem: Template = (_, { board }): string => ` => /${board.name}/ /${board.name}/${Description(board)} `; export default BoardItem;