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
|
|
|
|
2024-01-12 18:28:06 -05:00
|
|
|
export default class AiTitleSuggestion extends Component {
|
2023-09-13 17:18:48 -04:00
|
|
|
static shouldRender(outletArgs, helper) {
|
2024-02-01 17:58:04 -05:00
|
|
|
return showComposerAIHelper(outletArgs, helper, "suggestions");
|
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>
|
|
|
|
}
|