2024-11-05 07:04:33 +08:00
|
|
|
import RadioButton from "discourse/components/radio-button";
|
|
|
|
import dIcon from "discourse-common/helpers/d-icon";
|
2024-11-20 04:45:18 +08:00
|
|
|
import { i18n } from "discourse-i18n";
|
2024-11-05 07:04:33 +08:00
|
|
|
|
|
|
|
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;
|