13 lines
409 B
TypeScript
13 lines
409 B
TypeScript
import { api } from "@homarr/api/server";
|
|
|
|
import { BoardOtherHeaderActions } from "../_header-actions";
|
|
import { createBoardLayout } from "../_layout-creator";
|
|
|
|
export default createBoardLayout<{ locale: string; name: string }>({
|
|
headerActions: <BoardOtherHeaderActions />,
|
|
async getInitialBoardAsync({ name }) {
|
|
return await api.board.getBoardByName({ name });
|
|
},
|
|
isBoardContentPage: false,
|
|
});
|