kopia lustrzana https://github.com/Tldraw/Tldraw
16 wiersze
405 B
TypeScript
16 wiersze
405 B
TypeScript
import * as React from 'react'
|
|
import { Item } from '@radix-ui/react-dropdown-menu'
|
|
import { RowButton, RowButtonProps } from '~components/Primitives/RowButton'
|
|
|
|
export function DMItem({
|
|
onSelect,
|
|
id,
|
|
...rest
|
|
}: RowButtonProps & { onSelect?: (event: Event) => void; id?: string }) {
|
|
return (
|
|
<Item dir="ltr" asChild onSelect={onSelect} id={id}>
|
|
<RowButton {...rest} />
|
|
</Item>
|
|
)
|
|
}
|