💾 Archived View for iich.space › src › views › BoardItem.ts captured on 2021-12-03 at 14:04:38.

View Raw

More Information

-=-=-=-=-=-=-

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<Props> = (_, { board }): string => `
=> /${board.name}/ /${board.name}/${Description(board)}
`;

export default BoardItem;