import { Author } from "./Author"; import { Title } from "./Title"; import { Description } from "./Description"; import { Footer } from "./Footer"; import { Color } from "./Color"; import { Reminder } from "../../../api"; import { ImagePicker } from "../ImagePicker"; function colorToInt(hex: string) { return parseInt(hex.substring(1), 16); } export const Embed = ({ reminder, setReminder }) => { return (
{ setReminder((reminder: Reminder) => ({ ...reminder, embed_color: colorToInt(color), })); }} >
setReminder((reminder: Reminder) => ({ ...reminder, embed_title: title, })) } >

setReminder((reminder: Reminder) => ({ ...reminder, embed_description: description, })) } >

{}} >

{}} >

); };