mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 13:27:21 +00:00
20 lines
591 B
C#
20 lines
591 B
C#
namespace AIStudio.Settings.DataModel;
|
|
|
|
public static class StartPageExtensions
|
|
{
|
|
extension(StartPage startPage)
|
|
{
|
|
public string ToRoute() => startPage switch
|
|
{
|
|
StartPage.HOME => string.Empty,
|
|
StartPage.CHAT => Routes.CHAT,
|
|
StartPage.ASSISTANTS => Routes.ASSISTANTS,
|
|
StartPage.INFORMATION => Routes.ABOUT,
|
|
StartPage.PLUGINS => Routes.PLUGINS,
|
|
StartPage.SUPPORTERS => Routes.SUPPORTERS,
|
|
StartPage.SETTINGS => Routes.SETTINGS,
|
|
|
|
_ => string.Empty,
|
|
};
|
|
}
|
|
} |