mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
23 lines
585 B
Plaintext
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;
|