💾 Archived View for iich.space › src › views › BoardItem.ts captured on 2022-03-01 at 16:00:20.

View Raw

More Information

⬅️ Previous capture (2021-12-03)

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

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;