faq frontend typeguards
This commit is contained in:
@@ -3,6 +3,10 @@ import Accordion from './ui/Accordion'
|
||||
import { FAQProps } from '@/app/types'
|
||||
|
||||
const FAQ: React.FC<FAQProps> = ({ faqs }) => {
|
||||
if (!faqs || faqs.length === 0) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="w-full max-w-[1250px] mx-auto">
|
||||
<div className="pl-4 py-5 sticky">
|
||||
|
||||
Reference in New Issue
Block a user