discourse-ai/assets/javascripts/discourse/connectors/after-composer-title-input/ai-title-suggestion.gjs

18 lines
529 B
Plaintext
Raw Normal View History

2023-11-03 07:30:09 -04:00
import Component from "@glimmer/component";
import AISuggestionDropdown from "../../components/ai-suggestion-dropdown";
import { showComposerAIHelper } from "../../lib/show-ai-helper";
export default class AiTitleSuggestion extends Component {
static shouldRender(outletArgs, helper) {
return showComposerAIHelper(outletArgs, helper, "suggestions");
}
2023-11-03 07:30:09 -04:00
<template>
<AISuggestionDropdown
@mode="suggest_title"
@composer={{@outletArgs.composer}}
class="suggest-titles-button"
/>
</template>
}