diff --git a/src/app/counter-output.tsx b/src/app/counter-output.tsx
index 0818b05..86dff0f 100644
--- a/src/app/counter-output.tsx
+++ b/src/app/counter-output.tsx
@@ -1,43 +1,45 @@
+import React from "react";
import styled from "@emotion/styled";
import { useCounterState } from "./counter-provider";
const Container = styled.div({
margin: "0 0 1rem 0",
- "& > span": {
- display: "block",
- width: "100%",
- maxWidth: "100%",
- textAlign: "center",
- fontSize: "6.25rem",
- color: "#313131",
- textOverflow: "ellipsis",
- overflow: "hidden",
- whiteSpace: "nowrap",
-
- "@media (prefers-color-scheme: dark)": {
- color: "#b9b9b9",
- },
-
- "@media screen and (min-width: 48rem)": {
- fontSize: "8rem",
- },
+ display: "block",
+ width: "100%",
+ maxWidth: "100%",
+ textAlign: "center",
+ fontSize: "6.25rem",
+ color: "#313131",
+ textOverflow: "ellipsis",
+ overflow: "hidden",
+ whiteSpace: "nowrap",
+
+ "@media (prefers-color-scheme: dark)": {
+ color: "#b9b9b9",
+ },
+
+ "@media screen and (min-width: 48rem)": {
+ fontSize: "8rem",
},
});
function CountValue() {
const count = useCounterState();
- return (
-
- {count.toString()}
-
- );
+ return {count.toString()};
}
+export const COUNTER_VALUE_CONTAINER_ID = "counter-value";
+
export const CounterOutput = () => {
return (
-
+
);