import { ShapeProps } from "@asius/base";
import { Rect, Triangle, Circle, Ellipse } from "@remotion/shapes";
import { useColors } from "../useColors";
export const defaultShape: ShapeProps = {
comp: "shape",
type: "triangle",
width: 100,
height: 100,
fill: "yellow",
stroke: "black",
strokeWidth: 2,
edgeRoundness: 0,
cornerRadius: 0,
direction: "down",
};
export const Shape = (props: ShapeProps) => {
const getColor = useColors();
const fill = getColor(props.fill);
const stroke = getColor(props.stroke);
if (props.type === "triangle")
return (
);
if (props.type === "rect")
return (
);
else if (props.type === "circle")
return (
);
else if (props.type === "ellipse")
return (
);
return null;
};