2023-07-20 09:44:57 +00:00
|
|
|
// icons
|
2023-10-16 14:57:22 +00:00
|
|
|
import { ContrastIcon, DiceIcon, LayersIcon, PhotoFilterIcon } from "@plane/ui";
|
|
|
|
import { FileText } from "lucide-react";
|
2023-07-12 14:25:08 +00:00
|
|
|
// types
|
|
|
|
import { TTourSteps } from "./root";
|
|
|
|
|
|
|
|
const sidebarOptions: {
|
|
|
|
key: TTourSteps;
|
2023-07-20 09:44:57 +00:00
|
|
|
Icon: any;
|
2023-07-12 14:25:08 +00:00
|
|
|
}[] = [
|
|
|
|
{
|
|
|
|
key: "issues",
|
2023-10-16 14:57:22 +00:00
|
|
|
Icon: LayersIcon,
|
2023-07-12 14:25:08 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key: "cycles",
|
2023-10-16 14:57:22 +00:00
|
|
|
Icon: ContrastIcon,
|
2023-07-12 14:25:08 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key: "modules",
|
2023-10-16 14:57:22 +00:00
|
|
|
Icon: DiceIcon,
|
2023-07-12 14:25:08 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key: "views",
|
2023-10-16 14:57:22 +00:00
|
|
|
Icon: PhotoFilterIcon,
|
2023-07-12 14:25:08 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key: "pages",
|
2023-10-16 14:57:22 +00:00
|
|
|
Icon: FileText,
|
2023-07-12 14:25:08 +00:00
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
step: TTourSteps;
|
|
|
|
setStep: React.Dispatch<React.SetStateAction<TTourSteps>>;
|
|
|
|
};
|
|
|
|
|
|
|
|
export const TourSidebar: React.FC<Props> = ({ step, setStep }) => (
|
|
|
|
<div className="hidden lg:block col-span-3 p-8 bg-custom-background-90">
|
|
|
|
<h3 className="font-medium text-lg">
|
|
|
|
Let{"'"}s get started!
|
|
|
|
<br />
|
|
|
|
Get more out of Plane.
|
|
|
|
</h3>
|
|
|
|
<div className="mt-8 space-y-5">
|
|
|
|
{sidebarOptions.map((option) => (
|
|
|
|
<h5
|
|
|
|
key={option.key}
|
|
|
|
className={`pr-2 py-0.5 pl-3 flex items-center gap-2 capitalize font-medium text-sm border-l-[3px] cursor-pointer ${
|
|
|
|
step === option.key
|
|
|
|
? "text-custom-primary-100 border-custom-primary-100"
|
|
|
|
: "text-custom-text-200 border-transparent"
|
|
|
|
}`}
|
|
|
|
onClick={() => setStep(option.key)}
|
|
|
|
>
|
2023-10-16 14:57:22 +00:00
|
|
|
<option.Icon className="h-4 w-4" aria-hidden="true" />
|
2023-07-12 14:25:08 +00:00
|
|
|
{option.key}
|
|
|
|
</h5>
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|