From 3f853735035de60d2097a45953fb42b8b18ae0ad Mon Sep 17 00:00:00 2001 From: Siddharth Thevaril Date: Sun, 3 Mar 2024 16:11:06 +0530 Subject: [PATCH] add TS support for `DragHandle` component --- components/drag-handle/{index.js => index.tsx} | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) rename components/drag-handle/{index.js => index.tsx} (79%) diff --git a/components/drag-handle/index.js b/components/drag-handle/index.tsx similarity index 79% rename from components/drag-handle/index.js rename to components/drag-handle/index.tsx index 1ebef8ca..cba84aef 100644 --- a/components/drag-handle/index.js +++ b/components/drag-handle/index.tsx @@ -1,10 +1,13 @@ +import type { SVGProps } from 'react'; + /** * Renders an SVG drag handle. * * @param {object} props The prop object. * @returns {*} React JSX */ -export const DragHandle = (props) => ( + +export const DragHandle: React.FC> = (props) => (