Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

467 B
Raw Blame
import { artboardService } from '@/services/artboard';

import { mutateArtboard } from './useArtboard';

export const finalizeArtboard = async (id: string, revision: number) => {
  const result = await artboardService.finalize(id, revision);
  await mutateArtboard(id);
  return result;
};

export const chooseOption = async (id: string, roundId: string, boardId: string) => {
  await artboardService.chooseBoard(id, roundId, boardId);
  await mutateArtboard(id);
};