debian-mirror-gitlab/app/assets/javascripts/experimentation/components/gitlab_experiment.vue

16 lines
243 B
Vue
Raw Normal View History

2021-04-29 21:17:54 +05:30
<script>
import { getExperimentVariant } from '../utils';
export default {
props: {
name: {
type: String,
required: true,
},
},
render() {
return this.$slots?.[getExperimentVariant(this.name)];
},
};
</script>