import { Schema } from "effect";
import { ActionsConfig, defaultActionsConfig } from "../../../../actions/schema.js";
export const type = "com.shwfed.block.actions";
export const compatibilityDate = "2026-05-06";
export const metadata = {
  name: "\u64CD\u4F5C\u6309\u94AE",
  icon: "fluent:cursor-click-20-regular",
  w: { initial: 8, min: 8, max: Infinity },
  h: { initial: 2, min: 2, max: Infinity }
};
export function schema(configure, _blockRef) {
  const ActionsSchema = ActionsConfig(configure);
  return Schema.Struct({
    id: Schema.UUID.annotations({ description: "\u5757\u552F\u4E00\u6807\u8BC6" }),
    type: Schema.tag(type),
    compatibilityDate: Schema.tag(compatibilityDate),
    actions: ActionsSchema.annotations({
      title: "\u64CD\u4F5C\u6309\u94AE\u914D\u7F6E",
      description: "\u5185\u5D4C\u7684 Actions \u7EC4\u4EF6\u914D\u7F6E"
    })
  }).annotations({
    title: "\u64CD\u4F5C\u6309\u94AE\u5757",
    description: "\u5C06\u4E00\u7EC4 Actions \u6309\u94AE\u4F5C\u4E3A\u9875\u9762\u5757\u5D4C\u5165"
  });
}
export function defaultBody() {
  return { actions: defaultActionsConfig() };
}
