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.

296 B
Raw Blame
import type { Board } from "~/app/[locale]/boards/_types";

export interface RemoveItemInput {
  itemId: string;
}

export const removeItemCallback =
  ({ itemId }: RemoveItemInput) =>
  (board: Board): Board => ({
    ...board,
    items: board.items.filter((item) => item.id !== itemId),
  });