export const Routes = {
	HOME: '/',
	LOGIN: '/login',
	REGISTER: '/register',
	SETUP_ENCRYPTION: '/setup-encryption',

	ME: '/channels/@me',
	NOTIFICATIONS: '/notifications',
	YOU: '/you',

	dmChannel: (channelId: string) => `/channels/@me/${channelId}`,
	serverChannel: (serverId: string, channelId?: string) =>
		channelId ? `/channels/${serverId}/${channelId}` : `/channels/${serverId}`,
	channelMessage: (serverId: string, channelId: string, messageId: string) =>
		`/channels/${serverId}/${channelId}/${messageId}`,

	isDMRoute: (path: string) => path.startsWith('/channels/@me'),
	isServerRoute: (path: string) => path.startsWith('/channels/') && !path.startsWith('/channels/@'),
} as const;
