mirror of
https://github.com/luxfi/market.git
synced 2026-09-24 00:25:57 +00:00
cleaned up use of stitches themes; removed creation of explicit dark theme; remove theme switcher widget from nav;
30 lines
556 B
TypeScript
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
|