"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Font = class {
    constructor(name, cssName, importUrl, importType) {
        this.name = name;
        this.cssName = cssName;
        this.importUrl = importUrl;
        this.importType = importType;
    }
    importCss() {
        if (!this.importUrl)
            return "";
        return `
            @font-face {
                font-family: "${this.cssName}";
                src: @import url("${this.importUrl}") format("${this.importType || "TrueType"}");
            }
        `;
    }
    css() {
        return `font-family: "${this.cssName}";`;
    }
    getSelectOption() {
        return `<option value="${this.cssName}">${this.name}</option>`;
    }
    getJSXSelectOption() {
        return <option value={this.cssName}>{this.name}</option>;
    }
};
exports.default = Font;
//# sourceMappingURL=Font.jsx.map