mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 10:21:55 +00:00
19 lines
468 B
TypeScript
19 lines
468 B
TypeScript
import { PackagePropertyPage } from "../types"
|
|
import { PropertyGroup } from "./PropertyGroup"
|
|
|
|
export class PropertyPage {
|
|
private constructor(readonly data: PackagePropertyPage) {}
|
|
static of(options: {
|
|
name: string
|
|
description: string | null
|
|
groups: PropertyGroup[]
|
|
}) {
|
|
return new PropertyPage({
|
|
type: "page",
|
|
name: options.name,
|
|
description: options.description,
|
|
value: options.groups.map((x) => x.data),
|
|
})
|
|
}
|
|
}
|