import type { UserDirectoryItem } from "./types";

export interface UserDetailField {
	label: string;
	value: string;
}

export interface UserContactAction {
	label: string;
	enabled: boolean;
	hint: string;
}

export interface UserContactState {
	label: string;
	description: string;
}

export interface UserDrawerModel {
	title: string;
	subtitle: string;
	contactState: UserContactState;
	contactActions: UserContactAction[];
	identity: UserDetailField[];
	permissions: string[];
	syncStatus: string;
	source: string;
}

export declare function buildUserDrawerModel(
	user: UserDirectoryItem,
): UserDrawerModel;
