mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-17 02:01:29 +10:00
feat(templates): replace library with microfrontend app for templates
This commit is contained in:
@ -1,12 +0,0 @@
|
||||
import { templatesList } from "@reactive-resume/templates";
|
||||
import { useMemo } from "react";
|
||||
|
||||
export const useTemplate = (templateId?: string) => {
|
||||
const template = useMemo(() => {
|
||||
return templatesList.find((template) => template.id === templateId);
|
||||
}, [templateId]);
|
||||
|
||||
if (!template || !template.Component) return null;
|
||||
|
||||
return template;
|
||||
};
|
||||
@ -1,5 +1,4 @@
|
||||
export * from "./hooks/use-breakpoint";
|
||||
export * from "./hooks/use-form-field";
|
||||
export * from "./hooks/use-password-toggle";
|
||||
export * from "./hooks/use-template";
|
||||
export * from "./hooks/use-theme";
|
||||
|
||||
Reference in New Issue
Block a user