Files
discourse/plugins/chat/assets/javascripts/discourse/components/chat/scroll-to-bottom-arrow.gjs
Martin Brennan 7fd9550f64 DEV: Change dIcon to icon in components (#31083)
Apparently `icon` is the preferred nomenclature
2025-01-31 10:55:31 +10:00

23 lines
585 B
Plaintext

import DButton from "discourse/components/d-button";
import concatClass from "discourse/helpers/concat-class";
import icon from "discourse/helpers/d-icon";
const ScrollToBottomArrow = <template>
<div class="chat-scroll-to-bottom">
<DButton
class={{concatClass
"btn-flat"
"chat-scroll-to-bottom__button"
(if @isVisible "visible")
}}
@action={{@onScrollToBottom}}
>
<span class="chat-scroll-to-bottom__arrow">
{{icon "arrow-down"}}
</span>
</DButton>
</div>
</template>;
export default ScrollToBottomArrow;