"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createTemplatePlatform = void 0;
const path_1 = require("@grund/path");
function createTemplatePlatform(source, opts, values) {
    const { platform } = source.file;
    const { namespace } = opts;
    const templateName = source.file.name;
    const originalName = path_1.path.join('@template', templateName);
    if (!platform)
        return undefined;
    const namespacedName = path_1.path.join(namespace, values.packageName);
    return { originalName, templateName, namespacedName };
}
exports.createTemplatePlatform = createTemplatePlatform;
