({ id, name, children, styles }: CommonComponentProps)
| 2 | import { useMaterailDrop } from "../../hooks/useMaterailDrop"; |
| 3 | |
| 4 | function Page({ id, name, children, styles }: CommonComponentProps) { |
| 5 | |
| 6 | const {canDrop, drop } = useMaterailDrop(['Button', 'Container', 'Modal', 'Table', 'Form'], id); |
| 7 | |
| 8 | return ( |
| 9 | <div |
| 10 | data-component-id={id} |
| 11 | ref={drop} |
| 12 | className='p-[20px] h-[100%] box-border' |
| 13 | style={{ ...styles, border: canDrop ? '2px solid blue' : 'none' }} |
| 14 | > |
| 15 | {children} |
| 16 | </div> |
| 17 | ) |
| 18 | } |
| 19 | |
| 20 | export default Page; |
nothing calls this directly
no test coverage detected