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