export function transformObjectToOption(obj: T) { return Object.entries(obj).map(([value, label]) => ({ value, label })) as Common.OptionWithKey[]; }