chore: ran linting

This commit is contained in:
Anish Sarkar 2026-02-17 12:47:39 +05:30
parent e46b24a2b1
commit a482cc95de
67 changed files with 4971 additions and 5539 deletions

View file

@ -1,19 +1,19 @@
'use client';
"use client";
import { BookOpenIcon, PenLineIcon } from 'lucide-react';
import { usePlateState } from 'platejs/react';
import { BookOpenIcon, PenLineIcon } from "lucide-react";
import { usePlateState } from "platejs/react";
import { ToolbarButton } from './toolbar';
import { ToolbarButton } from "./toolbar";
export function ModeToolbarButton() {
const [readOnly, setReadOnly] = usePlateState('readOnly');
const [readOnly, setReadOnly] = usePlateState("readOnly");
return (
<ToolbarButton
tooltip={readOnly ? 'Click to edit' : 'Click to view'}
onClick={() => setReadOnly(!readOnly)}
>
{readOnly ? <BookOpenIcon /> : <PenLineIcon />}
</ToolbarButton>
);
return (
<ToolbarButton
tooltip={readOnly ? "Click to edit" : "Click to view"}
onClick={() => setReadOnly(!readOnly)}
>
{readOnly ? <BookOpenIcon /> : <PenLineIcon />}
</ToolbarButton>
);
}