interface BuildHeadersParams { token?: string; contentType?: string; } export const buildHeaders = ({ token, contentType }: BuildHeadersParams = {}) => { const headers: Record = {}; if (token) headers['Authorization'] = `Bearer ${token}`; if (contentType) headers['Content-Type'] = contentType; return { headers }; };