'use client';
import{jsx as t}from"react/jsx-runtime";import{createClass as o}from"@gem-sdk/system";import e from"../../text/components/Text.js";import{useCountdown as s,useGetTextExpired as m}from"../hooks/useCountdownTimer.js";import{getTextCountdownClass as r}from"../common/classes.js";let n=n=>{let{dateTime:i,setting:p,styles:x}=n,{typo:f,textAlign:l,direction:u}=x||{},{conditionText:c,expiredText:j}=p||{},{format:a,isExpired:d}=s(i),{text:C}=m({isExpired:d,expiredText:j,conditionText:c,format:a}),T=o(r());return t(e,{setting:{text:C},styles:{typo:f,textAlign:l,direction:u},textClass:T})};export{n as TextCountdown};
