mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 13:35:21 +02:00
10 lines
396 B
Text
10 lines
396 B
Text
|
<%# locals: (trend:) %>
|
||
|
<% styles = trend_styles(trend) %>
|
||
|
<p class="text-sm <%= styles[:text_class] %>">
|
||
|
<% if trend.direction == "flat" %>
|
||
|
<span>No change</span>
|
||
|
<% else %>
|
||
|
<span><%= styles[:symbol] %><%= format_currency(trend.amount.abs) %></span>
|
||
|
<span>(<%= lucide_icon(styles[:icon], class: "w-4 h-4 align-text-bottom inline") %><%= trend.percent %>%)</span>
|
||
|
<% end %>
|
||
|
</p>
|