AOI_V1/MaiMuAOI/AssistClient/bin/Debug/static/assets/useDarks-48f54672.js

2 lines
418 B
JavaScript

import{av as o,aw as s}from"./index-b866f159.js";const n=o(),l=s(n),g=(a,e)=>{let r=a[e.property];if(r==null)return null;let t=new Date(r);return t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()},u=a=>{let e=new Date(a);return e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate()},c=()=>({formatDate:g,formatOnlyDate:u,isDark:n,toggleDark:l});export{c as u};