export interface UserProfileFormValues { joinedAt?: string; qualifications?: string; subjects?: string[]; } export interface UserProfileResponse { id?: number; username?: string; name?: string; profile?: UserProfileFormValues | null; } export const userProfileResponseToFormValues = ( response: UserProfileResponse, ): UserProfileFormValues => response.profile || {};