discourse/app/assets/javascripts/admin/addon/components/install-theme-item.gjs
Martin Brennan b124736a1c
DEV: Convert install theme modal to GJS (#29506)
We will likely get rid of this at some point, but in the meantime
let's make it easier to modify and bring it up to date.
2024-11-05 09:04:33 +10:00

24 lines
588 B
Plaintext

import RadioButton from "discourse/components/radio-button";
import dIcon from "discourse-common/helpers/d-icon";
import i18n from "discourse-common/helpers/i18n";
const InstallThemeItem = <template>
<div class="install-theme-item">
<RadioButton
@name="install-items"
@id={{@value}}
@value={{@value}}
@selection={{@selection}}
/>
<label class="radio" for={{@value}}>
{{#if @showIcon}}
{{dIcon "plus"}}
{{/if}}
{{i18n @label}}
</label>
{{dIcon "caret-right"}}
</div>
</template>;
export default InstallThemeItem;