Files
artemis prime 17640c167a rebuilt hero as per previous version;
cleaned up use of stitches themes;
removed creation of explicit dark theme;
remove theme switcher widget from nav;
2023-01-21 21:00:55 -05:00

30 lines
556 B
TypeScript

import React from 'react'
import Flex from "./Flex"
import Text from "./Text"
const Value: React.FC<{
type: string
value: any
size?: number
fontSize?: number
}> = ({
type,
value,
size = 11,
fontSize = 16
}) => (
<Flex align="center">
<img
style={{ width: size }}
src={type === "weth" ? "/weth.png" : "/eth.png"}
/>
{false && <Text css={{ fontFamily: "arial" }}>Ξ</Text>}
<Text style="subtitle1" css={{ marginLeft: "$1", fontSize }}>
{value || "---"}
</Text>
</Flex>
)
export default Value