import { FC, memo } from "react"; import { useWindows } from "@/contexts/windows"; import { RD_WindowID_T } from "@/contexts/windows/types"; import StyledSnapOptions from "./StyledSnapOptions"; import StyledSnapLayout from "./StyledSnapLayout"; import StyledSnapper from "./StyledSnapper"; type SnapOptionsProps = { id: RD_WindowID_T; onFocus?: () => void; onUnfocus?: () => void; }; const SnapOptions: FC = ({ id, onFocus, onUnfocus }) => { const { windows: { [id]: currentWindow }, setSnap, } = useWindows(); return ( { setSnap(id, { type: "twoColumns", index: 0, widthPercent: 50 }); }} > { setSnap(id, { type: "twoColumns", index: 1, widthPercent: 50, }); }} > ); }; export default memo(SnapOptions);