/** * Internal dependencies */ import './placeholder.scss'; export type TasksPlaceholderProps = { numTasks?: number; query: { task?: string; }; }; export const TasksPlaceholder: React.FC< TasksPlaceholderProps > = ( { numTasks = 5, query, } ) => { const isSingleTask = Boolean( query.task ); if ( isSingleTask ) { return null; } return (