Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

389 B
Raw Blame
interface BoardValidationInput {
  attempted: boolean;
  hasExistingBoards: boolean;
  selectedBoardId: string | null;
  boardName: string;
}

export const getBoardValidationErrors = ({
  attempted,
  hasExistingBoards,
  selectedBoardId,
  boardName,
}: BoardValidationInput) => ({
  target: attempted && hasExistingBoards && !selectedBoardId,
  name: attempted && !boardName.trim(),
});