22 lines
494 B
TypeScript
22 lines
494 B
TypeScript
import "./chatEntry.css";
|
|||
|
|
|
||
|
|
import * as React from "bloatless-react";
|
||
|
|
|
||
|
|
import { BoardInfoFileContent } from "../../Model/Files/taskModel";
|
||
|
|
|
||
|
|
export function BoardEntry(boardInfo: BoardInfoFileContent) {
|
||
|
|
const view = (
|
||
|
|
<button color={boardInfo.color} class="tile">
|
||
|
|
<b>{boardInfo.name}</b>
|
||
|
|
</button>
|
||
|
|
);
|
||
|
|
|
||
|
|
return view;
|
||
|
|
}
|
||
|
|
|
||
|
|
export const BoardInfoToEntry: React.StateItemConverter<
|
||
|
|
BoardInfoFileContent
|
||
|
|
> = (boardInfo: BoardInfoFileContent) => {
|
||
|
|
return BoardEntry(boardInfo);
|
||
|
|
};
|