diff --git a/src/plugins/dearrow/index.tsx b/src/plugins/dearrow/index.tsx index f896531a..88d0dd6c 100644 --- a/src/plugins/dearrow/index.tsx +++ b/src/plugins/dearrow/index.tsx @@ -74,7 +74,7 @@ async function embedDidMount(this: Component) { } } -function renderButton(component: Component) { +function DearrowButton({ component }: { component: Component; }) { const { embed } = component.props; if (!embed?.dearrow) return null; @@ -137,7 +137,7 @@ export default definePlugin({ renderButton(component: Component) { return ( - {renderButton(component)} + ); },