Skip to content

OpenReel Video - Professional browser-based video editor. Open source CapCut alternative. 100% browser-based, no installation, no cloud uploads, no watermarks.

TypeScript
1.1 KB
Raw Blame
import { PrimaryTextProperties } from "../PrimaryTextProperties";
import React from "react";
import { TextSection, ShapeSection, SVGSection } from "../";
import { InspectorSection } from "../shell/InspectorSection";

interface StyleTabProps {
  clipId: string;
  showTextSection: boolean;
  showShapeSection: boolean;
  showSVGSection: boolean;
}

export const StyleTab: React.FC<StyleTabProps> = ({
  clipId,
  showTextSection,
  showShapeSection,
  showSVGSection,
}) => {
  return (
    <>
      {showTextSection && (
        <><PrimaryTextProperties clipId={clipId}/><InspectorSection title="Advanced text properties" sectionId="text-properties" sectionIds={["text-materials"]}><TextSection clipId={clipId}/></InspectorSection></>
      )}
      {showShapeSection && (
        <InspectorSection title="Shape Properties" sectionId="shape-properties" defaultOpen>
          <ShapeSection clipId={clipId} />
        </InspectorSection>
      )}
      {showSVGSection && (
        <InspectorSection title="SVG Properties" sectionId="svg-properties" defaultOpen>
          <SVGSection clipId={clipId} />
        </InspectorSection>
      )}
    </>
  );
};