Add global things from old app

This commit is contained in:
2025-07-20 10:59:02 +02:00
parent 53981c19b3
commit d04702fffe
108 changed files with 13106 additions and 147 deletions

View File

@ -0,0 +1,32 @@
'use client';
import * as React from 'react';
import { useIndentButton, useOutdentButton } from '@platejs/indent/react';
import { IndentIcon, OutdentIcon } from 'lucide-react';
import { ToolbarButton } from './toolbar';
export function IndentToolbarButton(
props: React.ComponentProps<typeof ToolbarButton>
) {
const { props: buttonProps } = useIndentButton();
return (
<ToolbarButton {...props} {...buttonProps} tooltip="Indent">
<IndentIcon />
</ToolbarButton>
);
}
export function OutdentToolbarButton(
props: React.ComponentProps<typeof ToolbarButton>
) {
const { props: buttonProps } = useOutdentButton();
return (
<ToolbarButton {...props} {...buttonProps} tooltip="Outdent">
<OutdentIcon />
</ToolbarButton>
);
}