Equicord/src/plugins/callTimer/timerText.tsx

16 lines
572 B
TypeScript
Raw Normal View History

2024-04-17 14:29:47 -04:00
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
export function TimerText({ text, className }: Readonly<{ text: string; className: string; }>) {
return <div className={`timeCounter ${className}`} style={{
2024-04-18 19:15:01 -04:00
marginTop: -6, // this margin value doesn't change the default size of the user container
2024-04-17 14:29:47 -04:00
fontWeight: "bold",
fontFamily: "monospace",
2024-04-18 19:15:01 -04:00
fontSize: 11, // good size that doesn't touch username
2024-04-17 14:29:47 -04:00
position: "relative",
}}>{text}</div>;
2024-04-18 19:15:01 -04:00
}