/**
 * Deep-clone a value through JSON round-trip.
 * Strips non-serializable properties (e.g. Drizzle decimal wrappers)
 * so the result is safe to pass from Server Components to Client Components.
 */
export function serialize<T>(value: T): T {
  return JSON.parse(JSON.stringify(value));
}
