Eugen Rochko f441e3db4e [Glitch] Change onboarding flow in web UI
Port 7a3dea385e48c72ff4d1553709f618bc5070b255 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2024-12-01 18:47:56 +01:00

13 lines
338 B
TypeScript

import type { ApiSuggestionJSON } from 'flavours/glitch/api_types/suggestions';
export interface Suggestion extends Omit<ApiSuggestionJSON, 'account'> {
account_id: string;
}
export const createSuggestion = (
serverJSON: ApiSuggestionJSON,
): Suggestion => ({
sources: serverJSON.sources,
account_id: serverJSON.account.id,
});