/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved.
 */

import { makeAutoObservable } from 'mobx';
import { ExampleInfo } from '@/entity/example';

export class ExampleStore {
    private _activeExample: ExampleInfo | undefined;
    constructor() {
        makeAutoObservable(this);
        this._activeExample = new ExampleInfo();
    }
    get activeExample() {
        return this._activeExample;
    }
    set activeExample(value) {
        this._activeExample = value;
    }
    async newExample(){
        const example = new ExampleInfo();
        return example;
    }
};