2023-11-03 07:30:09 -04:00
|
|
|
import Component from "@glimmer/component";
|
2023-09-01 20:10:58 -04:00
|
|
|
import AISuggestionDropdown from "../../components/ai-suggestion-dropdown";
|
2023-10-23 10:41:36 -04:00
|
|
|
import { showComposerAIHelper } from "../../lib/show-ai-helper";
|
2023-09-01 20:10:58 -04:00
|
|
|
|
|
|
|
export default class AITitleSuggestion extends Component {
|
2023-09-13 17:18:48 -04:00
|
|
|
static shouldRender(outletArgs, helper) {
|
2023-10-23 10:41:36 -04:00
|
|
|
return showComposerAIHelper(outletArgs, helper);
|
2023-09-13 17:18:48 -04:00
|
|
|
}
|
2023-11-03 07:30:09 -04:00
|
|
|
|
|
|
|
<template>
|
|
|
|
<AISuggestionDropdown
|
|
|
|
@mode="suggest_title"
|
|
|
|
@composer={{@outletArgs.composer}}
|
|
|
|
class="suggest-titles-button"
|
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
}
|