package p.studio.compiler.models;

import java.util.List;
import java.util.Objects;

public record FrontendSemanticPresentationSpec(
        List<String> semanticKeys,
        List<String> resources) {

    public FrontendSemanticPresentationSpec {
        semanticKeys = List.copyOf(Objects.requireNonNull(semanticKeys, "semanticKeys"));
        resources = List.copyOf(Objects.requireNonNull(resources, "resources"));
    }

    public static FrontendSemanticPresentationSpec empty() {
        return new FrontendSemanticPresentationSpec(List.of(), List.of());
    }
}
