'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 TextCountdown=n=>{let{dateTime:i,setting:p,styles:x}=n,{typo:u,textAlign:f,direction:l}=x||{},{conditionText:c,expiredText:d}=p||{},{format:j,isExpired:C}=s(i),{text:T}=m({isExpired:C,expiredText:d,conditionText:c,format:j}),a=o(r());return t(e,{setting:{text:T},styles:{typo:u,textAlign:f,direction:l},textClass:a})};export{TextCountdown};
