Something went wrong. Try again.
ATProto-based AI Assistant Chat interface.
Something went wrong. Try again.
12345678import type { Ref } from 'react'
/** Sets a ref the caller passed, whether a callback or an object, beside a component's own. */export function setRef<T>(ref: Ref<T> | undefined, value: T | null) { if (typeof ref === 'function') ref(value) else if (ref) ref.current = value}