format code using prettier
This commit is contained in:
parent
91999a6303
commit
abde6817f0
27 changed files with 326 additions and 260 deletions
|
@ -1,11 +1,13 @@
|
|||
import { createContext, useContext, type Accessor } from "solid-js";
|
||||
|
||||
export type HeroSource = {[key: string | symbol | number]: HTMLElement | undefined}
|
||||
export type HeroSource = {
|
||||
[key: string | symbol | number]: HTMLElement | undefined;
|
||||
};
|
||||
|
||||
const HeroSourceContext = createContext<Accessor<HeroSource>>(() => ({}))
|
||||
const HeroSourceContext = createContext<Accessor<HeroSource>>(() => ({}));
|
||||
|
||||
export const HeroSourceProvider = HeroSourceContext.Provider
|
||||
export const HeroSourceProvider = HeroSourceContext.Provider;
|
||||
|
||||
export function useHeroSource() {
|
||||
return useContext(HeroSourceContext)
|
||||
return useContext(HeroSourceContext);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue