You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
570 B
23 lines
570 B
import React, {useContext, useEffect} from "react";
|
|
import {Page} from "../primitives/Layout";
|
|
import DataContext from "../contexts/DataContext";
|
|
import {IconElement} from "../primitives/Elements";
|
|
|
|
const SettingsPage: React.FC = () => {
|
|
const {colorPresets} = useContext(DataContext);
|
|
|
|
useEffect(() => {
|
|
}, []);
|
|
|
|
return (
|
|
<Page title="Oppsett">
|
|
<h1>Definerte farger</h1>
|
|
{colorPresets.map(cp => (
|
|
<IconElement key={cp.id} {...cp} caption={cp.name}/>
|
|
))}
|
|
<button>Add</button>
|
|
</Page>
|
|
);
|
|
};
|
|
|
|
export default SettingsPage;
|