// Omnichannel section — channels converging into a single Chat Hotel core
const CHANNEL_MESSAGES = [
{ channel: 'whatsapp', name: 'Marina · WhatsApp', text: 'Vocês têm disponibilidade dia 22?', time: '14:32', delay: 200 },
{ channel: 'instagram', name: 'Léo · Instagram DM', text: 'Vi o post da suíte, ainda dá pra esse fim de semana?', time: '14:33', delay: 1300 },
{ channel: 'web', name: 'Visitante · Site', text: 'Como funciona o check-in antecipado?', time: '14:33', delay: 2600 },
{ channel: 'messenger', name: 'Carla · Messenger', text: 'Aceitam pets de pequeno porte?', time: '14:34', delay: 3900 },
{ channel: 'email', name: 'helena@…', text: 'Gostaria de agendar uma sessão de spa para o domingo.', time: '14:34', delay: 5200 },
];
const OmnichannelSection = ({ palette }) => {
const [ref, inView] = useInView(0.2);
const [visible, setVisible] = React.useState(0);
React.useEffect(() => {
if (!inView) return;
let timers = [];
const run = () => {
setVisible(0);
timers = CHANNEL_MESSAGES.map((m, i) => setTimeout(() => setVisible(i + 1), m.delay + 600));
};
run();
const loop = setInterval(run, 8500);
return () => { timers.forEach(clearTimeout); clearInterval(loop); };
}, [inView]);
return (
O hóspede começa no Instagram, continua no WhatsApp, encerra por e-mail.
O Chat Hotel mantém o contexto inteiro e sua equipe vê tudo num histórico unificado —
sem repetir perguntas, sem cair em filas, sem perder o tom.
Cinco canais.
Uma só conversa.