Initial Strapi plugin project

This commit is contained in:
2026-02-05 10:19:56 +00:00
parent f6de861195
commit efa89313fa
100 changed files with 48612 additions and 0 deletions
+19
View File
@@ -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 };
+5
View File
@@ -0,0 +1,5 @@
import { PuzzlePiece } from '@strapi/icons';
const PluginIcon = () => <PuzzlePiece />;
export { PluginIcon };