namespace MiGu.Server.Configs;

public record CustomWidget(
    string Id, string Name, string SchemaJson, string LayoutJson,
    List<string> BindToScopes);

public record CustomWidgetConfig(List<CustomWidget> Items)
{
    public static CustomWidgetConfig Default() => new(
        Items: new List<CustomWidget>
        {
            new("widget-call-button", "呼叫按钮",
                "{\"fields\":[{\"name\":\"siteId\"}]}",
                "{\"x\":0,\"y\":0,\"w\":2,\"h\":1}",
                new List<string> { "RCSMonitor" })
        });
}
