summaryrefslogtreecommitdiff
path: root/apps/web/src/app/animation/page.tsx
blob: 37be1ef09415e99b8b2389c6305eb4b1ed00705e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"use client";

import { InputWithBack } from "@/components/ui/input-with-back";
import { useState } from "react";

export default function AnimationPage() {
  const [isExpanded, setIsExpanded] = useState(false);

  return (
    <div className="h-dvh flex">
      <div className="bg-panel p-6 w-[20rem]">
        <InputWithBack isExpanded={isExpanded} setIsExpanded={setIsExpanded} />
      </div>
      <div className="p-6 flex items-end justify-end">
        <p
          onClick={() => setIsExpanded(!isExpanded)}
          className="cursor-pointer hover:opacity-75 transition-opacity"
        >
          {isExpanded ? "Collapse" : "Expand"}
        </p>
      </div>
    </div>
  );
}