Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

569 B
Raw Blame
import { createSearchParamsCodec } from '@app/lib/split-router';
import { z } from 'zod';

export const bookingLinksSearch = {
  namespace: 'scheduling',
  schema: z.object({
    tab: z.enum(['links', 'availability', 'bookings', 'insights', 'page']),
    owner: z.string(),
    createBookingLink: z.boolean().optional(),
  }),
  defaults: { tab: 'links' as const, owner: '', createBookingLink: false },
};

export type BookingLinksState = z.infer<typeof bookingLinksSearch.schema>;

export const bookingLinksSearchCodec =
  createSearchParamsCodec(bookingLinksSearch);