Sono andato avanti.
This commit is contained in:
@@ -1 +1,27 @@
|
||||
export const palette = ['#ffffff', '#fef3c7', '#dbeafe', '#dcfce7', '#fee2e2', '#f3e8ff'];
|
||||
import { nanoid } from "nanoid";
|
||||
import type { Note } from "./types";
|
||||
|
||||
export const palette = [
|
||||
'#ffffff',
|
||||
'#f28b82',
|
||||
'#f6a04d',
|
||||
'#fff475',
|
||||
'#ccff90',
|
||||
'#a7ffeb',
|
||||
'#cbf0f8',
|
||||
'#aecbfa',
|
||||
'#d7aefb',
|
||||
'#fdcfe8',
|
||||
'#e6c9a8',
|
||||
'#e8eaed'
|
||||
];
|
||||
|
||||
export const createEmptyNote = (): Note => ({
|
||||
id: nanoid(),
|
||||
title: '',
|
||||
content: '',
|
||||
color: palette[0],
|
||||
date: new Date(),
|
||||
images: [],
|
||||
files: []
|
||||
});
|
||||
Reference in New Issue
Block a user