From efa89313fa4152252b477aafd88f7cf4a66747d8 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 5 Feb 2026 10:19:56 +0000 Subject: Initial Strapi plugin project --- admin/src/components/Initializer.tsx | 19 +++++++++++++++++++ admin/src/components/PluginIcon.tsx | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 admin/src/components/Initializer.tsx create mode 100644 admin/src/components/PluginIcon.tsx (limited to 'admin/src/components') diff --git a/admin/src/components/Initializer.tsx b/admin/src/components/Initializer.tsx new file mode 100644 index 0000000..8188291 --- /dev/null +++ b/admin/src/components/Initializer.tsx @@ -0,0 +1,19 @@ +import { useEffect, useRef } from 'react'; + +import { PLUGIN_ID } from '../pluginId'; + +type InitializerProps = { + setPlugin: (id: string) => void; +}; + +const Initializer = ({ setPlugin }: InitializerProps) => { + const ref = useRef(setPlugin); + + useEffect(() => { + ref.current(PLUGIN_ID); + }, []); + + return null; +}; + +export { Initializer }; diff --git a/admin/src/components/PluginIcon.tsx b/admin/src/components/PluginIcon.tsx new file mode 100644 index 0000000..54174ba --- /dev/null +++ b/admin/src/components/PluginIcon.tsx @@ -0,0 +1,5 @@ +import { PuzzlePiece } from '@strapi/icons'; + +const PluginIcon = () => ; + +export { PluginIcon }; -- cgit v1.2.3