// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-3.0-or-later
// @source: https://gitlab.com/soapbox-pub/ditto/-/tree/f0a3877c
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{qi as t}from"./lucide-icons-BdRF0moN.js";import{F as n,I as r,P as i,b as a,v as o,y as s}from"./useTheme-B8n3R7ig.js";import{f as c,r as l}from"./letterTypes-BLLFWtiN.js";var u=e(t(),1),d={color:l};function f(e){let t=e??d;return(0,u.useMemo)(()=>{let e=c(t);if(e.textColor){let t=o(e.color);return{text:e.textColor,faint:e.textColor+`4d`,line:t,fontFamily:e.fontFamily}}return e.colors&&e.colors.length>0?{text:n(e.colors),faint:r(e.colors),line:i(e.colors),fontFamily:e.fontFamily}:{text:s(e.color),faint:a(e.color),line:o(e.color),fontFamily:e.fontFamily}},[t])}export{f as t};
// @license-end
