import React from "react"; import clsx from "clsx"; export interface HexagramObj { change: boolean | null; yang: boolean; separate: boolean; } function Hexagram(props: { list: HexagramObj[] }) { return (
{props.list.map((value, index) => { return (
{value.separate &&
}
); })}
); } function Line(props: { change: boolean | null; yang: boolean }) { let changeYang = props.change && props.yang; const color = props.change ? "bg-red-400" : "bg-stone-400"; return (
{props.yang ? (
) : (
)} {props.change ? : null}
); } function Change(props: { changeYang: boolean | null }) { return (
{props.changeYang ? ( ) : ( )}
); } export default Hexagram;