"use client"; import { motion } from "motion/react"; import { Button } from "./ui/button"; import { memo } from "react"; interface SuggestedPromptsProps { sendMessage: (input: string) => void; } function PureSuggestedPrompts({ sendMessage }: SuggestedPromptsProps) { const suggestedActions = [ { title: "What are the advantages", label: "of using Next.js?", action: "What are the advantages of using Next.js?", }, { title: "What is the weather", label: "in San Francisco?", action: "What is the weather in San Francisco?", }, ]; return (
{suggestedActions.map((suggestedAction, index) => ( 1 ? "hidden sm:block" : "block"} > ))}
); } export const SuggestedPrompts = memo(PureSuggestedPrompts, () => true);