Add array string and function viewers

This commit is contained in:
Sam Nolan 2022-05-02 21:59:56 +00:00
parent 11d4a3bc8b
commit 6e72b89f7f

View File

@ -156,6 +156,18 @@ const SquiggleItem: React.FC<SquiggleItemProps> = ({
))}
</VariableBox>
);
case "arraystring":
return (
<VariableBox heading="Array String" showTypes={showTypes}>
{expression.value.map((r) => `"${r}"`)}
</VariableBox>
);
case "lambda":
return (
<ErrorBox heading="No Viewer">
There is no viewer currently available for function types.
</ErrorBox>
);
}
};