| 1 |
import { getVibes, vibeCssBySlug } from '@shared/lib/vibes'; |
| 2 |
import useSWRImmutable from 'swr/immutable'; |
| 3 |
|
| 4 |
// Fifteen previews render at once and share this key, so it fetches once. |
| 5 |
export const useVibeCss = () => |
| 6 |
useSWRImmutable('launch-vibe-css', () => |
| 7 |
getVibes('launch').then(vibeCssBySlug), |
| 8 |
); |
| 9 |
|